Added support for $munin_datadir and $munin_htmldir variables.
This commit is contained in:
parent
e4e4ed206b
commit
e6eebdfd47
1 changed files with 32 additions and 0 deletions
|
@ -173,6 +173,38 @@ class munin::server {
|
||||||
ensure => installed,
|
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":
|
file { "/etc/munin/nodes.d":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
purge => true,
|
purge => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue