Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
Last active December 14, 2015 11:29
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 mrzarquon/5079805 to your computer and use it in GitHub Desktop.
Save mrzarquon/5079805 to your computer and use it in GitHub Desktop.
Possible way to stop/start services in a puppet run.
service_window { 'apache-stop':
ensure => stopped,
service_name => 'apache',
}
package { 'new-app':
ensure => installed,
require => Service_Window['apache-stop'],
before => Service_Window['apache-start'],
}
service_window { 'apache-start':
ensure => started,
service_name => 'apache',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment