It doesn't look like udd actually uses projectb; remove its guest access
[mirror/dsa-puppet.git] / modules / samhain / manifests / init.pp
index 7975fba..64afc54 100644 (file)
@@ -1,20 +1,31 @@
+# = Class: samhain
+#
+# This class installs and configures samhain
+#
+# == Sample Usage:
+#
+#   include samhain
+#
 class samhain {
 
-    package { samhain: ensure => latest }
+       package { 'samhain':
+               ensure => installed,
+       }
 
-    file { "/etc/samhain/samhainrc":
-        owner   => root,
-        group   => root,
-        mode    => 444,
-        source  => [ "puppet:///samhain/per-host/$fqdn/samhainrc",
-                     "puppet:///samhain/common/samhainrc" ],
-        require => Package["samhain"],
-        notify  => Exec["samhain reload"],
-    }
+       service { 'samhain':
+               ensure    => running,
+               hasstatus => false,
+               pattern   => 'samhain',
+               require   => Package['samhain'],
+       }
 
-    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']
+       }
 
+       file { '/etc/logrotate.d/samhain':
+               content => template('samhain/logrotate.d-samhain'),
+       }
+}