summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp17
1 files changed, 16 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 971f076..1e5a78f 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -116,7 +116,21 @@ class munin::plugins::base {
$munin_node_package = "munin-node"
}
}
- file {
+ case $operatingsystem {
+ centos: {
+ file {
+ [ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
+ source => "puppet://$servername/munin/empty",
+ ensure => directory, checksum => mtime,
+ recurse => true, purge => true, force => true,
+ mode => 0755, owner => root, group => root;
+ "/etc/munin/plugin-conf.d/munin-node":
+ ensure => present,
+ mode => 0644, owner => root, group => root;
+ }
+ }
+ default: {
+ file {
[ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
source => "puppet://$servername/munin/empty",
ensure => directory, checksum => mtime,
@@ -127,6 +141,7 @@ class munin::plugins::base {
ensure => present,
mode => 0644, owner => root, group => root,
notify => Service[$munin_node_service];
+ }
}
}