try with different line spacing
authorPeter Palfrader <peter@palfrader.org>
Thu, 12 Mar 2009 18:27:04 +0000 (19:27 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 12 Mar 2009 18:27:04 +0000 (19:27 +0100)
input/howto/puppet-setup.mdwn

index ba948a7..9503e96 100644 (file)
@@ -5,6 +5,7 @@ configuration of samhain, munin, apt, and exim (although more to come -
 this list is likely to get out of date quickly).
 
 To set up a new host to be a puppet client, do the following:
+
        : ::client:: && apt-get install puppet &&
                 /etc/init.d/puppet stop &&
                 puppetd -w 5 --debug -t --factsync
@@ -14,16 +15,20 @@ client cert.  Now is the time to abort if you are getting cold feet.
 
 Compare incoming csr request:
 on handel:
+
        : __handel__ && echo -n 'Client name: ' && read client &&
                 sha1sum /var/lib/puppet/ssl/ca/requests/$client.debian.org.pem
 on new client:
+
        : ::client:: && sha1sum /var/lib/puppet/ssl/csr_$(hostname).debian.org.pem
 
 If you're satisfied, sign the request on handel with:
+
        : __handel__ && puppetca --sign $client.debian.org
 
 bootstrap client knowledge of puppet ca:
 on handel:
+
        : __handel__ && echo 'cat > /var/lib/puppet/ssl/certs/ca.pem << EOF ' &&
                 cat /var/lib/puppet/ssl/certs/ca.pem &&
                 echo 'EOF' &&
@@ -32,12 +37,14 @@ on handel:
                 echo 'EOF'
 
 and execute this on the client.
+
        : ::client:: copy paste the thing you just created on handel
 
 If this is a busy mail host, you might want to stop exim before proceeding
 although the config files should remain identical before and after.
 
 Then run (this will change the configs in /etc):
+
        : ::client:: && puppetd -w 5 --debug -t --factsync
 
 This run will start puppet after reconfiguring it, so if you are