]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Removing puppetd lock on node start
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Feb 2010 19:56:30 +0000 (17:56 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Feb 2010 19:56:30 +0000 (17:56 -0200)
files/etc/rc.local

index 393c83ee67cd83071033f34afe983efc7b1aa591..504274e5d7b49cc61370e2abaa854d51c567b3d5 100644 (file)
@@ -14,6 +14,9 @@
 # Force the hostname
 /bin/hostname `cat /etc/hostname`
 
+# Remove puppetd lock
+rm -f /var/lib/puppet/state/puppetdlock
+
 # Then restart puppet with the right hostname
 /etc/init.d/puppet stop
 /etc/init.d/puppet start