Last active
August 7, 2017 15:45
-
-
Save cmattoon/43cb2cbdc7812c2f383cb5919cf432e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC_CONF="/etc/puppetlabs/puppet/puppet.conf" | |
SSL_DIR="/etc/puppetlabs/puppet/ssl" | |
sed -i "s/ctpuppetmaster01/ctpuppetconsole02/" $SRC_CONF | |
mv -f "${SSL_DIR}" "${SSL_DIR}.pe" | |
mv -f /etc/puppetlabs/mcollective/ssl /etc/puppetlabs/mcollective/ssl.pe | |
#systemctl stop pe-mcollective | |
service pe-mcollective stop | |
puppet agent --test --debug --noop | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment