X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fpuppet-setup.mdwn;h=edb9baeb85e003a63b1f7cdc6d2b925aea31657b;hb=5fd0c69849d3d336139a5a9bbdb66b400d7d7911;hp=f96c5f962246738bfe6d0fdd0374515a2417c071;hpb=98fdc9abe34b67c5118c53ec7b01090f92461260;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/puppet-setup.mdwn b/input/howto/puppet-setup.mdwn index f96c5f9..edb9bae 100644 --- a/input/howto/puppet-setup.mdwn +++ b/input/howto/puppet-setup.mdwn @@ -14,7 +14,7 @@ adjusted. : ::client:: && me=$(hostname -f) && [ "$me" != "${me%debian.org}" ] && apt-get update && apt-get install -y --no-install-recommends puppet libaugeas-ruby1.8 augeas-lenses lsb-release && - /etc/init.d/puppet stop && + service puppet stop && (puppet agent -t || true ) && cd /var/lib/puppet/ssl/certificate_requests && echo sha256sum output: && echo && @@ -51,16 +51,20 @@ although the config files should remain identical before and after. Then run (this will change the configs in /etc): - : ::client:: && puppet agent -t + : ::client:: && puppet agent -t --pluginsync -This run will start puppet after reconfiguring it, so if you are -unhappy with what just happened, you'll need to stop it again to do +This run will start puppet after reconfiguring it, so if you are +unhappy with what just happened, you'll need to stop it again to do repair. Double check apt - the puppet setup usually results in duplicate apt sources, since we ship a few under sources.list.d. Remove any unnecessary entries from sources.list. +On handel, make sure the certs exist for the new host + + : :: handel :: : && sudo -u puppet make -C /srv/puppet.debian.org/ca/ install + We ship a samhain config file that includes /lib and /usr/lib. This will almost certainly be different than the config file on the machine, so it will result in 1000s of files changed.