1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-11-10 01:00:35 +00:00

Fix Puppet signing by appending .localdomain

This commit is contained in:
Kris Lamoureux 2020-05-05 20:29:39 -04:00
parent 555304661b
commit 2205d835fd
Signed by: kris
GPG Key ID: A30022791E1719A4

View File

@ -40,8 +40,8 @@ then
vagrant destroy -f vagrant destroy -f
vagrant up vagrant up
vagrant ssh master -c "sudo puppet cert sign webserver" vagrant ssh master -c "sudo puppet cert sign webserver.localdomain"
vagrant ssh master -c "sudo puppet cert sign backups" vagrant ssh master -c "sudo puppet cert sign backups.localdomain"
vagrant ssh webserver -c "sudo puppet agent -t" vagrant ssh webserver -c "sudo puppet agent -t"
vagrant ssh backups -c "sudo puppet agent -t" vagrant ssh backups -c "sudo puppet agent -t"
@ -60,11 +60,11 @@ then
elif [ "$1" == "cert-update" ] elif [ "$1" == "cert-update" ]
then then
vagrant ssh master -c "sudo puppet cert clean $2" vagrant ssh master -c "sudo puppet cert clean $2.localdomain"
vagrant ssh $2 -c "sudo find /var/lib/puppet/ssl -name $2.pem -delete" vagrant ssh $2 -c "sudo find /var/lib/puppet/ssl -name $2.localdomain.pem -delete"
vagrant ssh $2 -c "sudo puppet agent -t" vagrant ssh $2 -c "sudo puppet agent -t"
sleep 3 sleep 3
vagrant ssh master -c "sudo puppet cert sign $2" vagrant ssh master -c "sudo puppet cert sign $2.localdomain"
sleep 3 sleep 3
vagrant ssh $2 -c "sudo puppet agent -t" vagrant ssh $2 -c "sudo puppet agent -t"