Issues for Puppet and Puppet Server - KeegMitch/Operations-Engineering-group-c GitHub Wiki
SSL Certificate
Strictly following instructions labelled in the Puppet Server Documentation
also can't get this working currently: puppetserver ca setup
puppet.conf
There appears to be two puppet.conf files, one in /etc/puppet/puppet.conf , where the master is, and the other in the /etc/puppetlabs/puppet/puppet.conf. The issue is that they're both on the DB server rather than the mgmt.
on the mgmt server:
Solution to above screenshot: sudo apt remove --purge puppet-master
User this command to get rid of puppet and puppetserver
sudo apt-get purge puppet-agent puppetserver
puppetserver ca list gave this
So I used this command
sudo cp /etc/puppetlabs/puppet/ssl/certs/mgmt-c.njusv4n2ftievljhy1xwugac1h.px.internal.cloudapp.net.pem /home/group-c/.puppetlabs/etc/puppet/ssl/certs/
Then is gave this
Used this command
sudo cp /etc/puppetlabs/puppet/ssl/private_keys/mgmt-c.njusv4n2ftievljhy1xwugac1h.px.internal.cloudapp.net.pem /home/group-c/.puppetlabs/etc/puppet/ssl/private_keys/
Then it gave this
SO used these commands
sudo chown group-c: /home/group-c/.puppetlabs/etc/puppet/ssl/private_keys/mgmt-c.njusv4n2ftievljhy1xwugac1h.px.internal.cloudapp.net.pem
sudo chmod 400 /home/group-c/.puppetlabs/etc/puppet/ssl/private_keys/mgmt-c.njusv4n2ftievljhy1xwugac1h.px.internal.cloudapp.net.pem
Which led to this
The site.pp was in the wrong folder it needed to be in etc/puppetlabs/code/environments/production/manifests/
It was instead in etc/puppet/code/environments/production/manifests/