projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spell sed right
[mirror/dsa-puppet.git]
/
modules
/
munin
/
manifests
/
init.pp
diff --git
a/modules/munin/manifests/init.pp
b/modules/munin/manifests/init.pp
index
ee50bd0
..
2ae6429
100644
(file)
--- a/
modules/munin/manifests/init.pp
+++ b/
modules/munin/manifests/init.pp
@@
-9,6
+9,23
@@
class munin {
require => Package['munin-node'],
}
require => Package['munin-node'],
}
+ $owner = $::lsbdistcodename ? {
+ squeeze => munin,
+ wheezy => root
+ }
+
+ $gid = $::lsbdistcodename ? {
+ squeeze => adm,
+ wheezy => 'www-data',
+ }
+
+ file { '/var/log/munin':
+ ensure => directory,
+ owner => $owner,
+ group => $gid,
+ mode => '0755',
+ }
+
file { '/etc/munin/munin-node.conf':
content => template('munin/munin-node.conf.erb'),
require => Package['munin-node'],
file { '/etc/munin/munin-node.conf':
content => template('munin/munin-node.conf.erb'),
require => Package['munin-node'],