Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Last active August 7, 2017 15:45
Show Gist options
  • Save cmattoon/43cb2cbdc7812c2f383cb5919cf432e5 to your computer and use it in GitHub Desktop.
Save cmattoon/43cb2cbdc7812c2f383cb5919cf432e5 to your computer and use it in GitHub Desktop.
#!/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