Difference between revisions of "Puppet"

From neil.tappsville.com
Jump to navigationJump to search
(Created page with "https://puppet.com/ Normally to update the host (instead of waiting for the timer) sudo puppet agent --test ===Host stops reporting, wont fetch anything=== Usually when som...")
 
m
Line 26: Line 26:
  
 
</pre>
 
</pre>
 +
 +
===puppet encrypt===
 +
ssh-keygen -f hostname -C hostname -t ed25519
 +
sudo /opt/puppetlabs/puppet/bin/eyaml encrypt -f hostname

Revision as of 03:16, 16 January 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

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