Issues for Puppet and Puppet Server - KeegMitch/Operations-Engineering-group-c GitHub Wiki

SSL Certificate

image

fix and uninstall mgmt server

Strictly following instructions labelled in the Puppet Server Documentation image

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.

image

image

on the mgmt server:

image

image

Solution to above screenshot: sudo apt remove --purge puppet-master

image

User this command to get rid of puppet and puppetserver

sudo apt-get purge puppet-agent puppetserver

puppetserver ca list gave this

image

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

image

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

image

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

image

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/