projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
godard: enable persistent journald storage. rt#7049
[mirror/dsa-puppet.git]
/
modules
/
samhain
/
manifests
/
init.pp
diff --git
a/modules/samhain/manifests/init.pp
b/modules/samhain/manifests/init.pp
index
bf20d57
..
64afc54
100644
(file)
--- a/
modules/samhain/manifests/init.pp
+++ b/
modules/samhain/manifests/init.pp
@@
-1,14
+1,22
@@
+# = Class: samhain
+#
+# This class installs and configures samhain
+#
+# == Sample Usage:
+#
+# include samhain
+#
class samhain {
package { 'samhain':
ensure => installed,
class samhain {
package { 'samhain':
ensure => installed,
- noop => true,
}
service { 'samhain':
}
service { 'samhain':
- ensure => running,
+ ensure
=> running,
hasstatus => false,
pattern => 'samhain',
hasstatus => false,
pattern => 'samhain',
+ require => Package['samhain'],
}
file { '/etc/samhain/samhainrc':
}
file { '/etc/samhain/samhainrc':
@@
-16,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'),
+ }
}
}