summaryrefslogtreecommitdiff
path: root/manifests/plugins/setup.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2011-08-04 10:22:48 +0200
committerMarcel Haerry <haerry@puzzle.ch>2011-08-04 10:22:48 +0200
commit447041b01494690975d078776a85f4a3fd4e64fa (patch)
tree0d09932e8466de8208144aa034de401398151ca6 /manifests/plugins/setup.pp
parent553fbe3e1d3c6865172c1db8cf93d69fb936dc18 (diff)
parenteb953716cd545f86972e85d983b5862c194f5aed (diff)
merge with immerda/master
Diffstat (limited to 'manifests/plugins/setup.pp')
-rw-r--r--manifests/plugins/setup.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/plugins/setup.pp b/manifests/plugins/setup.pp
new file mode 100644
index 0000000..c88f9e0
--- /dev/null
+++ b/manifests/plugins/setup.pp
@@ -0,0 +1,26 @@
+class munin::plugins::setup {
+ file {
+ [ '/etc/munin/plugins', '/etc/munin/plugin-conf.d' ]:
+ ignore => 'snmp_*',
+ ensure => directory, checksum => mtime,
+ recurse => true, purge => true, force => true,
+ mode => 0755, owner => root, group => 0,
+ notify => Service['munin-node'];
+ '/etc/munin/plugin-conf.d/munin-node':
+ ensure => present,
+ mode => 0644, owner => root, group => 0,
+ notify => Service['munin-node'],
+ }
+ case $kernel {
+ openbsd: {
+ File['/etc/munin/plugin-conf.d/munin-node']{
+ before => File['/var/run/munin'],
+ }
+ }
+ default: {
+ File['/etc/munin/plugin-conf.d/munin-node']{
+ before => Package['munin-node'],
+ }
+ }
+ }
+}