make this fail if domain !d.o
authorStephen Gran <steve@lobefin.net>
Sat, 14 Apr 2012 17:50:42 +0000 (19:50 +0200)
committerStephen Gran <steve@lobefin.net>
Sat, 14 Apr 2012 17:50:42 +0000 (19:50 +0200)
Signed-off-by: Stephen Gran <steve@lobefin.net>
input/howto/puppet-setup.mdwn

index 1d2ec88..777525d 100644 (file)
@@ -12,13 +12,13 @@ adjusted.
 
         : __handel__ && puppetd -t --environment=production
 
-        : ::client:: && apt-get update &&
+        : ::client:: me=$(hostname -f) && [ "$me" != "${me%debian.org}" ] && apt-get update &&
                 apt-get install --no-install-recommends puppet libaugeas-ruby1.8 augeas-lenses lsb-release &&
                 /etc/init.d/puppet stop &&
                 (puppetd -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