Ask Your Question
0

Can't give PE-master custom name during initial installation

asked 2016-06-23 01:58:52 -0500

Den gravatar image

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:

    "puppetenterprise::puppetmasterhost": "puppet-prod.aws.mydomain.com" "peinstall::dnsaltnames": ["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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2016-09-30 03:11:40 -0500

xjarid gravatar image

I found using the hostname of your AWS instance results in a sucessful installation of the PE master.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-06-23 01:58:52 -0500

Seen: 244 times

Last updated: Jun 23 '16