handel ignore
[mirror/dsa-puppet.git] / modules / samhain / manifests / init.pp
index 5a56fbe..cfee73e 100644 (file)
@@ -1,19 +1,16 @@
 class samhain {
 
-    package { samhain: ensure => latest }
+       package { 'samhain':
+               ensure => installed
+       }
 
-    file { "/etc/samhain/samhainrc":
-        owner   => root,
-        group   => root,
-        mode    => 444,
-        source  => "puppet:///samhain/samhainrc",
-        require => Package["samhain"],
-        notify  => Exec["samhain reload"],
-    }
+       service { 'samhain':
+               ensure => running
+       }
 
-    exec { "samhain reload":
-        path        => "/etc/init.d/",
-        refreshonly => true,
-    }
+       file { '/etc/samhain/samhainrc':
+               content => template('samhain/samhainrc.erb'),
+               require => Package['samhain'],
+               notify  => Service['samhain']
+       }
 }
-