I am new to Puppet and currently following this blog post to get a basic understanding of setting up a puppet instance however I have came across an issue

asked 2017-06-16 04:53:26 -0500

JohnO gravatar image

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class ntp for node01.example.com on node node01.example.com

I am able to run sudo puppet cert list --all and see the certs for each node are signed however when the node tries to retrieve the classes it throws this error.

edit retag flag offensive close merge delete

Comments

Is the ntp class installed on your puppet master? On your puppet master execute `puppet module list`. This of course assumes you are using a puppet master. Are you executing `puppet agent -t` or `puppet apply -e 'include ntp'`?

Red Cricket gravatar imageRed Cricket ( 2017-06-17 01:08:01 -0500 )edit

vagrant@puppet:/etc/puppet/modules$ ls apt docker epel fig git ntp stdlib vcsrepo looks like all modules are installed however when I run puppet agent -t I get Error: Could not request certificate: The certificate retrieved from the master does not match the agent's private key.

JohnO gravatar imageJohnO ( 2017-06-19 03:20:57 -0500 )edit

However if I list all certs on master I see the certs for the node

JohnO gravatar imageJohnO ( 2017-06-19 03:21:09 -0500 )edit

are you running `puppet agent -t` as your user instead of root? as your user, it's put in a ~/.puppet* folder, and as root, the certs are stored in a common place (/opt/puppetlabs/...)

DarylW gravatar imageDarylW ( 2017-06-19 08:04:48 -0500 )edit

I'm running as root and I still get the same error as my original question

JohnO gravatar imageJohnO ( 2017-06-20 13:38:49 -0500 )edit