Skip to content

Instantly share code, notes, and snippets.

@loe
Created December 9, 2008 01:15
Show Gist options
  • Save loe/33711 to your computer and use it in GitHub Desktop.
Save loe/33711 to your computer and use it in GitHub Desktop.
class nginx {
include monit
package { nginx:
ensure => "installed"
}
service { nginx:
enable => true,
ensure => "running",
hasstatus => true,
hasrestart => true,
restart => "/etc/init.d/nginx reload",
require => File["/etc/nginx"],
}
monit_file { "nginx": ensure => present }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment