Waiting on certificate signing

One of the simplest errors that you will see when running the agent for the first time is a message stating, failed to retrieve certificate and waitforcert is disabled:

Exiting; failed to retrieve certificate and waitforcert is disabled

This particular message is easy to fix. Our agent is informing us that it has not received a signed certificate back from the master. We can solve this problem by simply logging in to the Puppet Master as the root user and signing our certificate. We can view any pending certificates on our Puppet Master with the command puppet cert list, as follows:

[root@wordpress puppetlabs]# puppet agent -tExiting; no certificate found and waitforcert is disabled

In the preceding code, we ...

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.