diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/puppet-reset-agent (renamed from share/hydractl/puppet-reset) | 0 | ||||
-rwxr-xr-x | share/hydractl/puppet-reset-master | 23 |
2 files changed, 23 insertions, 0 deletions
diff --git a/share/hydractl/puppet-reset b/share/hydractl/puppet-reset-agent index d009c02..d009c02 100755 --- a/share/hydractl/puppet-reset +++ b/share/hydractl/puppet-reset-agent diff --git a/share/hydractl/puppet-reset-master b/share/hydractl/puppet-reset-master new file mode 100755 index 0000000..ee1c888 --- /dev/null +++ b/share/hydractl/puppet-reset-master @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Reset puppet master and start over again. +# + +# Stop services +/etc/init.d/puppet stop +/etc/init.d/puppetmaster stop +/etc/init.d/nginx stop + +# Reset configuration +hydractl puppet-reset-stored +rm -rf /var/lib/puppetmaster/ssl + +# Get fresh config +rm -rf /etc/puppet/ && git clone /var/git/repositories/puppet.git/ /etc/puppet +( cd /etc/puppet/ && git submodule update --init ) +chown -R puppet.puppet /etc/puppet/ + +# Start services +/etc/init.d/puppetmaster start +sleep 10 +/etc/init.d/nginx start |