summaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-agent
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 20:46:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 20:46:49 -0300
commit05fc9055717f0ceeb37a0d022792678416ad8966 (patch)
treee2600ce73c87e2e23f2fc4aeb182df1856bd3c4a /share/hydractl/puppet-reset-agent
parent7ae3852c15873cdbc4740f75c48565e5fcc2df70 (diff)
downloadhydra-05fc9055717f0ceeb37a0d022792678416ad8966.tar.gz
hydra-05fc9055717f0ceeb37a0d022792678416ad8966.tar.bz2
Adding puppet-reset-master and renaming puppet-reset
Diffstat (limited to 'share/hydractl/puppet-reset-agent')
-rwxr-xr-xshare/hydractl/puppet-reset-agent10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/hydractl/puppet-reset-agent b/share/hydractl/puppet-reset-agent
new file mode 100755
index 0000000..d009c02
--- /dev/null
+++ b/share/hydractl/puppet-reset-agent
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# Reset puppet SSL setup and register again.
+#
+# TODO: remove whole /var/lib/puppet?
+#
+
+/etc/init.d/puppet stop
+rm -rf /var/lib/puppet/ssl
+puppetd --server puppet.`facter domain` --waitforcert 60 --test --ca_port 8141