aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-agent
diff options
context:
space:
mode:
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