Fixed munin plugin state directory permissions
This commit is contained in:
parent
ec7c903536
commit
06092d1681
1 changed files with 11 additions and 0 deletions
|
@ -44,6 +44,17 @@ class munin::node {
|
||||||
notify => Exec["munin-node-configure"],
|
notify => Exec["munin-node-configure"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $kernel == "Linux" {
|
||||||
|
file { "/var/lib/munin/plugin-state":
|
||||||
|
ensure => directory,
|
||||||
|
mode => "0775",
|
||||||
|
owner => "munin",
|
||||||
|
group => "munin",
|
||||||
|
before => Service["munin-node"],
|
||||||
|
require => Package["munin-node"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@file { "/etc/munin/nodes.d/${homename}.conf":
|
@@file { "/etc/munin/nodes.d/${homename}.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => "[${homename}]\n address ${ipaddress}\n use_node_name yes\n",
|
content => "[${homename}]\n address ${ipaddress}\n use_node_name yes\n",
|
||||||
|
|
Loading…
Add table
Reference in a new issue