projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backup widor
[mirror/dsa-puppet.git]
/
modules
/
samhain
/
manifests
/
init.pp
diff --git
a/modules/samhain/manifests/init.pp
b/modules/samhain/manifests/init.pp
index
c4a466e
..
09e649b
100644
(file)
--- a/
modules/samhain/manifests/init.pp
+++ b/
modules/samhain/manifests/init.pp
@@
-1,17
+1,27
@@
+# = Class: samhain
+#
+# This class installs and configures samhain
+#
+# == Sample Usage:
+#
+# include samhain
+#
class samhain {
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
,
+
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']
+ }
}
}
-