summaryrefslogtreecommitdiff
path: root/manifests/plugins/setup.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-07-15 20:41:39 +0200
committermh <mh@immerda.ch>2010-07-15 20:41:39 +0200
commitdab730ed6b0667d4356c0e8e21e37719ea977a93 (patch)
treea00789980ad6bb8cbf27bf41c31de8c88dfb9171 /manifests/plugins/setup.pp
parente7d23dabf191c5416197af0b229fc90b94539405 (diff)
fixing weird class setup
we had some weird class setup which caused some problems on 2.6 (see puppet bug #4242 for more info). This commit cleans that weird setup up and decouples a lot of things.
Diffstat (limited to 'manifests/plugins/setup.pp')
-rw-r--r--manifests/plugins/setup.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/plugins/setup.pp b/manifests/plugins/setup.pp
new file mode 100644
index 0000000..f645f12
--- /dev/null
+++ b/manifests/plugins/setup.pp
@@ -0,0 +1,27 @@
+class munin::plugins::setup {
+ file {
+ [ '/etc/munin/plugins', '/etc/munin/plugin-conf.d' ]:
+ source => "puppet://$server/modules/common/empty",
+ ignore => [ '\.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'],
+ }
+ }
+ }
+}