handel ignore
[mirror/dsa-puppet.git] / modules / samhain / manifests / init.pp
index c4a466e..cfee73e 100644 (file)
@@ -1,17 +1,16 @@
 class samhain {
 
-    package { samhain: ensure => installed }
+       package { 'samhain':
+               ensure => installed
+       }
 
-    file { "/etc/samhain/samhainrc":
-        source  => [ "puppet:///samhain/per-host/$fqdn/samhainrc",
-                     "puppet:///samhain/common/samhainrc" ],
-        require => Package["samhain"],
-        notify  => Exec["samhain reload"],
-    }
+       service { 'samhain':
+               ensure => running
+       }
 
-    exec { "samhain reload":
-        path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
-        refreshonly => true,
-    }
+       file { '/etc/samhain/samhainrc':
+               content => template('samhain/samhainrc.erb'),
+               require => Package['samhain'],
+               notify  => Service['samhain']
+       }
 }
-