Added support for $munin_datadir and $munin_htmldir variables.

This commit is contained in:
Ossi Salmi 2010-03-23 13:46:21 +02:00 committed by Timo Mkinen
parent e4e4ed206b
commit e6eebdfd47

View file

@ -173,6 +173,38 @@ class munin::server {
ensure => installed,
}
if $munin_datadir {
file { "${munin_datadir}":
ensure => directory,
mode => 0755,
owner => munin,
group => munin,
}
file { "/var/lib/munin":
ensure => "${munin_datadir}",
force => true,
backup => ".orig",
require => [ Package["munin"], File["${munin_datadir}"] ],
}
}
if $munin_htmldir {
file { "${munin_htmldir}":
ensure => directory,
mode => 0755,
owner => munin,
group => munin,
}
file { "/var/www/html/munin":
ensure => "${munin_htmldir}",
force => true,
backup => ".orig",
require => [ Package["munin"], File["${munin_htmldir}"] ],
}
}
file { "/etc/munin/nodes.d":
ensure => directory,
purge => true,