Created
July 8, 2015 23:45
-
-
Save acidprime/848acd2d7845f323e03f to your computer and use it in GitHub Desktop.
Restart a service with puppet
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
| #!/opt/puppetlabs/puppet/bin/ruby | |
| require 'puppet' | |
| service = Puppet::Type.type(:service).new({:name => 'puppet'}).provider | |
| service.restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment