Wrong Puppet user

When we're writing code, we often log in to a test machine to run our agent manually and get a sense of what's going on. We rarely log in directly as the root, and it's easy to forget to switch our user to root. This problem can be particularly frustrating, because it appears as a certificate error. Our individual user generates a new certificate, and cannot connect to the Master using the SSL error. The key difference that you'll notice in the error log is the recommendation to remove the local certificate.

This happens primarily when doing testing and running the agent as the wrong user on a Puppet agent. Take note of the generating new key, and the user context user in line 1, and in the certificate clean message:In the ...

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.