aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-agent
blob: 1640758eb33b94ec4b1724b0f26d4d137754e625 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
#
# Reset puppet SSL setup and register again.
#

/etc/init.d/puppet stop
rm -rf /var/lib/puppet/ssl
puppetd --server puppet.`facter domain` --waitforcert 60 --test --ca_port 8141 \
        --vardir /var/lib/puppet --ssldir /var/lib/puppet/ssl