Skip to content

Instantly share code, notes, and snippets.

@tnolet
Last active January 3, 2016 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnolet/8398447 to your computer and use it in GitHub Desktop.
Save tnolet/8398447 to your computer and use it in GitHub Desktop.
Mcollective tricks
# Some mcollective tricks are very poorly documented. Like running an arbitrary shell command.
# This command removes the SSL dir on all puppet agents.
mco rpc puppetral create type=exec title="/bin/rm -rf /etc/puppetlabs/puppet/ssl" user="root" -F fact_is_puppetmaster=false
# You could then run the puppet agent again to request an new certificate from the master. This command does this with a concurrency of 2 agents.
mco puppetd -v runall 2 -F hostname=/^somehost/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment