projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
another ntp cleanup
[mirror/dsa-puppet.git]
/
modules
/
samhain
/
manifests
/
init.pp
diff --git
a/modules/samhain/manifests/init.pp
b/modules/samhain/manifests/init.pp
index
cfee73e
..
64afc54
100644
(file)
--- a/
modules/samhain/manifests/init.pp
+++ b/
modules/samhain/manifests/init.pp
@@
-1,11
+1,22
@@
+# = Class: samhain
+#
+# This class installs and configures samhain
+#
+# == Sample Usage:
+#
+# include samhain
+#
class samhain {
package { 'samhain':
class samhain {
package { 'samhain':
- ensure => installed
+ ensure => installed
,
}
service { 'samhain':
}
service { 'samhain':
- ensure => running
+ ensure => running,
+ hasstatus => false,
+ pattern => 'samhain',
+ require => Package['samhain'],
}
file { '/etc/samhain/samhainrc':
}
file { '/etc/samhain/samhainrc':
@@
-13,4
+24,8
@@
class samhain {
require => Package['samhain'],
notify => Service['samhain']
}
require => Package['samhain'],
notify => Service['samhain']
}
+
+ file { '/etc/logrotate.d/samhain':
+ content => template('samhain/logrotate.d-samhain'),
+ }
}
}