Last active
January 3, 2016 02:49
-
-
Save tnolet/8398447 to your computer and use it in GitHub Desktop.
Mcollective tricks
This file contains 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
# 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