#Nifty: Quick script to remove certs on puppet agents
#See https://confluence.zitcom.dk/display/DRIFT/Reset+Puppet+Cert+on+Agent for details.

if [[ "`hostname`" =~ "puppetmaster" ]]; then
  echo "DONT RUN THIS ON PUPPETMASTER!!!!"
  exit 1
else
 find /var/lib/puppet/ssl/ -type f -name "*pem" -delete
fi
