Skip to content

Instantly share code, notes, and snippets.

@loe
Created October 6, 2008 22:47
Show Gist options
  • Save loe/15164 to your computer and use it in GitHub Desktop.
Save loe/15164 to your computer and use it in GitHub Desktop.
# Lets us trigger monit reloads from other modules
# monit_file { "nginx": ensure => present }
define monit_file($ensure = 'absent') {
file { "/etc/monit.d/${name}.run":
owner => "root",
group => "root",
mode => "0644",
replace => true,
source => "puppet:///${name}/${name}.run",
ensure => $ensure,
notify => Service["monit"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment