Peter L. Berghold Salty....@gmail.com
I've been banging my head against the wall with this one. Probably a simple fix but I'm not seeing it at the moment.I have a proof of concept setup in our lab where I have a central Foreman/Puppet server. The Puppet server on the Foreman box has the responsibility of keeping things straight on subordinate "remote servers" that in production will be located in the same data center as the client base they will server.
To get the POC remote server set up I manually load the Puppet client software on the host (later it will come pre-loaded on a VM template) and I run the Puppet client manually. That first run is all about the certs and getting the Foreman ENC aware of the host. Adding a couple of config groups the the host and next we run puppet agent -t-test --server=<foreman host fqdn> and all the configuration files get loaded and then things go sideways.
The Puppet Master daemon will not run on the host. What I'm seeing in /var/log/messages is as follows:Feb 18 19:48:20 <hostname> puppet-master[32593]: Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key.Feb 18 19:48:20 <hostname>puppet-master[32593]: Certificate fingerprint: BC:0C:19:83:62:F8:A6:AD:ED:85:B7:19:B6:AD:75:FE:36:62:D7:43:C9:5B:76:64:E8:A1:F5:C1:FE:1F:39:21Feb 18 19:48:20 <hostname>puppet-master[32593]: To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate.Feb 18 19:48:20 <hostname> puppet-master[32593]: On the master:Feb 18 19:48:20 <hostname> puppet-master[32593]: puppet cert clean <agent host FQDN>Feb 18 19:48:20 <hostname> puppet-master[32593]: On the agent:Feb 18 19:48:20 <hostname> puppet-master[32593]: 1a. On most platforms: find /var/lib/puppet/ssl -name <agent host FQDN> -deleteFeb 18 19:48:20 <hostname>puppet-master[32593]: 1b. On Windows: del "/var/lib/puppet/ssl/<agent host FQDN>.pem" /fFeb 18 19:48:20 <hostname> puppet-master[32593]: 2. puppet agent -t