summaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-agent
blob: d009c02d71f57200e87722a54119d36d75e429f2 (plain)
1
2
3
4
5
6
7
8
9
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