I am growing to loathe your parser
[mirror/dsa-puppet.git] / modules / monit / manifests / init.pp
1 class monit {
2     package { "monit": ensure => installed }
3
4     file {
5         "/etc/monit/monitrc":
6           source  => "puppet:///monit/monitrc",
7           require => Package["monit"],
8           notify  => Exec["monit restart"],
9           mode    => 440
10           ;
11
12         "/etc/monit/monit.d":
13           ensure  => directory,
14           owner   => root,
15           group   => root,
16           mode    => 750,
17           purge   => true
18           ;
19
20         "/etc/monit/monit.d/01puppet":
21           source  => "puppet:///monit/puppet",
22           require => Package["monit"],
23           notify  => Exec["monit restart"],
24           mode    => 440
25           ;
26
27         "/etc/monit/monit.d/00debian.org":
28           source  => "puppet:///monit/debianorg",
29           require => Package["monit"],
30           notify  => Exec["monit restart"],
31           mode    => 440
32           ;
33
34         "/etc/default/monit":
35           source  => "puppet:///monit/default",
36           require => Package["monit"],
37           notify  => Exec["monit restart"]
38           ;
39     }
40     exec { "monit restart":
41         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
42         refreshonly => true,
43     }
44 }
45