X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=input%2Fhowto%2Fpuppet-setup.mdwn;h=9fd4eec779c3b506e166b2ff7eac6ff8ce510ddd;hb=321a1a7dede545b4523bf022b924e9b8da0055c5;hp=6a155d69717c1e7a57eb2f2cab8581b304cb440f;hpb=10872c48997281bcea11d44fbaaed6c49e1ff21f;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/puppet-setup.mdwn b/input/howto/puppet-setup.mdwn index 6a155d6..9fd4eec 100644 --- a/input/howto/puppet-setup.mdwn +++ b/input/howto/puppet-setup.mdwn @@ -10,12 +10,12 @@ 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__ && puppet agent -t --environment=production + : __handel__ && puppet agent --no-daemonize --onetime --environment=production : ::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 ) && + (puppet agent --no-daemonize --onetime || true ) && cd /var/lib/puppet/ssl/certificate_requests && echo sha256sum output: && echo && sha256sum $me.pem && @@ -43,7 +43,9 @@ on handel, paste the sha256output:: cat /var/lib/puppet/ssl/ca/signed/$filename && echo 'EOF' && cd / && - echo 'puppet agent -t --pluginsync' + echo 'puppet agent --enable' && + echo 'puppet agent --no-daemonize --onetime --pluginsync' && + echo 'puppet agent --no-daemonize --onetime --pluginsync' and execute this on the client. @@ -54,13 +56,13 @@ although the config files should remain identical before and after. Try this once if you're nervous: - : ::client:: && puppet agent -t --pluginsync --noop + : ::client:: && puppet agent --no-daemonize --onetime --pluginsync --noop It will tell you what would have changed without actually doing it. Then run (this will change the configs in /etc): - : ::client:: && puppet agent -t --pluginsync + : ::client:: && puppet agent --no-daemonize --onetime --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