So with PE 2016.2 I can't give my puppet master custom name during installation.
setting it in AWS, CentOS 7 node
so it's better to have something beautiful, human readable in certaname then ugly aws' fqdn.
With 2015.1-2 and it's old answers.txt I was able to do so, but not with 2016.2 and pe.conf
so, here we go:
- firewall disabled (doesn't exist)
- selinux disabled
- /etc/hosts have all the records
> 10.71.11.65 puppet-prod.aws.mydomain.com puppet puppet-prod puppetmaster ip-10-71-11-65 ip-10-71-11-65.ec2.internal
- server was restarted several times, and can properly resolve all that hostnames
- pe.conf has these lines, dnsaltnames include all possible options:
"puppet_enterprise::puppet_master_host": "puppet-prod.aws.mydomain.com"
"pe_install::dns_alt_names": ["10.71.11.65", "ip-10-71-11-65", "ip-10-71-11-65.ec2.internal", "puppet", "puppet-prod", "puppet-prod.aws.mydomain.com", "puppetmaster"]
Debug output
2016-06-23 06:32:13,612 - [Debug]: Exec[retrieve cert for ip-10-71-11-65.ec2.internal](provider=posix): Executing '/opt/puppetlabs/puppet/bin/puppet certificate find ip-10-71-11-65.ec2.internal --ca-location rem
ote --ca_server puppet-prod.aws.mydomain.com'
2016-06-23 06:32:13,612 - [Debug]: Executing: '/opt/puppetlabs/puppet/bin/puppet certificate find ip-10-71-11-65.ec2.internal --ca-location remote --ca_server puppet-prod.aws.mydomain.com'
2016-06-23 06:32:14,856 - [Notice]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[retrieve cert for ip-10-71-11-65.ec2.internal]/returns: Error: Could not call 'find' on 'certificate': Connection refused -
connect(2) for "puppet-prod.aws.mydomain.com" port 8140
2016-06-23 06:32:14,856 - [Notice]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[retrieve cert for ip-10-71-11-65.ec2.internal]/returns: Error: Could not call 'find' on 'certificate': Connection refused -
connect(2) for "puppet-prod.aws.mydomain.com" port 8140
2016-06-23 06:32:14,857 - [Notice]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[retrieve cert for ip-10-71-11-65.ec2.internal]/returns: Error: Try 'puppet help certificate find' for usage
2016-06-23 06:32:14,857 - [Error]: /opt/puppetlabs/puppet/bin/puppet certificate find ip-10-71-11-65.ec2.internal --ca-location remote --ca_server puppet-prod.aws.mydomain.com returned 1 instead of one of [
0]
2016-06-23 06:32:14,857 - [Error]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[retrieve cert for ip-10-71-11-65.ec2.internal]/returns: change from notrun to 0 failed: /opt/puppetlabs/puppet/bin/puppet ce
rtificate find ip-10-71-11-65.ec2.internal --ca-location remote --ca_server puppet-prod.aws.mydomain.com returned 1 instead of one of [0]
2016-06-23 06:32:14,858 - [Debug]: Class[Pe_install::Prepare::Certificates]: Resource is being skipped, unscheduling all events
2016-06-23 06:32:14,858 - [Debug]: Class[Pe_install::Prepare]: Resource is being skipped, unscheduling all events
2016-06-23 06:32:14,858 - [Debug]: Class[Pe_install::Install]: Resource is being skipped, unscheduling all events
2016-06-23 06:32:14,864 - [Debug]: Executing: '/bin/systemctl is-active pxp-agent'
2016-06-23 06:32:14,882 - [Debug]: Executing: '/bin/systemctl is-enabled pxp-agent'
2016-06-23 06:32:14,889 - [Debug]: Executing: '/bin/systemctl unmask pxp-agent'
2016-06-23 06:32:14,919 - [Debug]: Executing: '/bin/systemctl start pxp-agent'
2016-06-23 06:32:14,982 - [Debug]: Executing: '/bin/systemctl is-enabled pxp-agent'
2016-06-23 06:32:14,989 - [Notice]: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]/ensure: ensure changed 'stopped' to 'running'
2016-06-23 06:32:14,990 - [Debug]: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]: The container Class[Puppet_enterprise::Pxp_agent::Service] will propagate my refresh event
2016-06-23 06:32:14,990 - [Info]: /Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]: Unscheduling refresh on Service[pxp-agent]
2016-06-23 06:32:14,991 - [Debug]: Class[Puppet_enterprise::Pxp_agent::Service]: The container Stage[main] will propagate my refresh event
2016-06-23 06:32:14,992 - [Error]: Cannot create /opt/puppetlabs/server/apps/enterprise; parent directory /opt/puppetlabs/server/apps does not exist
2016-06-23 06:32:14,992 - [Error]: /Stage[main]/Pe_manager/File[/opt/puppetlabs/server/apps/enterprise]/ensure: change from absent to directory failed: Cannot create /opt/puppetlabs/server/apps/enterprise; paren
t directory /opt/puppetlabs/server/apps does not exist
↧