Difference between revisions of "Puppet"

From neil.tappsville.com
Jump to navigationJump to search
m
m
Line 5: Line 5:
  
 
===Host stops reporting, wont fetch anything===
 
===Host stops reporting, wont fetch anything===
 +
 +
====Forman Integration====
 +
If the branch that the environment is using gets merged/deleted the nodes stop updating as puppet cant find a class = branch.
 +
puppet only needs to find a branch thats 'alive' then it will get told the right information from forman.
 +
so <code>puppet agent -t --environment develop</code>
 +
 +
Instead of --->
 +
 
Usually when someone has stopped puppet - done lots of changes, potentially deleted the branch it was configured with.
 
Usually when someone has stopped puppet - done lots of changes, potentially deleted the branch it was configured with.
  

Revision as of 00:30, 12 February 2020

https://puppet.com/

Normally to update the host (instead of waiting for the timer)

sudo puppet agent --test

Host stops reporting, wont fetch anything

Forman Integration

If the branch that the environment is using gets merged/deleted the nodes stop updating as puppet cant find a class = branch. puppet only needs to find a branch thats 'alive' then it will get told the right information from forman. so puppet agent -t --environment develop

Instead of --->

Usually when someone has stopped puppet - done lots of changes, potentially deleted the branch it was configured with.

Ensure that the /etc/puppetlabs/puppetpuppet.conf files environment is correct

[main]
vardir = /opt/puppetlabs/puppet/cache
logdir = /var/log/puppetlabs/puppet
rundir = /var/run/puppetlabs
ssldir = /etc/puppetlabs/puppet/ssl

[agent]
pluginsync      = true
report          = true
ignoreschedules = true
ca_server       = puppetmaster.domain
certname        = thishost.domain
environment     = develop
server          = puppetmaster.domain
splay = true

puppet encrypt

ssh-keygen -f hostname -C hostname -t ed25519
sudo /opt/puppetlabs/puppet/bin/eyaml encrypt -f hostname