Try making monit on squeeze work
[mirror/dsa-puppet.git] / modules / monit / manifests / init.pp
index b4bf73e..b7e909d 100644 (file)
@@ -2,11 +2,19 @@ class monit {
     package { "monit": ensure => installed }
 
     file {
+        "/etc/monit/":
+          ensure  => directory,
+          owner   => root,
+          group   => root,
+          mode    => 755,
+          purge   => true
+          ;
+
         "/etc/monit/monitrc":
-          source  => "puppet:///monit/monitrc",
+          content => template("monit/monitrc.erb"),
           require => Package["monit"],
           notify  => Exec["monit restart"],
-          mode    => 440
+          mode    => 400
           ;
 
         "/etc/monit/monit.d":
@@ -32,7 +40,7 @@ class monit {
           ;
 
         "/etc/default/monit":
-          source  => "puppet:///monit/default",
+          content => template("monit/default.erb"),
           require => Package["monit"],
           notify  => Exec["monit restart"]
           ;