X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fpuppet-setup.mdwn;h=aad6e4ed2eaca83c22c9aae5d914320384ac8968;hb=47c7b623102b776095a8849371000569afc65b8c;hp=9ab1ac0b2638ef7f2b9b2d26b9d5fbdf586b0112;hpb=50acc3b0315c77b531b644fbdb8c83891844794f;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/puppet-setup.mdwn b/input/howto/puppet-setup.mdwn index 9ab1ac0..aad6e4e 100644 --- a/input/howto/puppet-setup.mdwn +++ b/input/howto/puppet-setup.mdwn @@ -10,15 +10,15 @@ Make sure you have set up the IP address for the new machine in ud-ldap. After that run puppet on puppetmaster once, so the ferm config get adjusted. - : __handel__ && puppetd -t --environment=production + : __handel__ && puppet agent -t --environment=production - : ::client:: && apt-get update && - apt-get install --no-install-recommends puppet libaugeas-ruby1.8 augeas-lenses && - /etc/init.d/puppet stop && - puppetd -t && + : ::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 && + service puppet stop && + (puppet agent -t || true ) && cd /var/lib/puppet/ssl/certificate_requests && echo sha256sum output: && echo && - sha256sum $(hostname -f).pem && + sha256sum $me.pem && echo && echo && cd / This will not overwrite anything yet, since handel has not signed the @@ -51,7 +51,7 @@ although the config files should remain identical before and after. Then run (this will change the configs in /etc): - : ::client:: && puppetd -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