X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Fmanifests%2Finit.pp;h=0fc6d1e41e00bacaf62c69658dcc0768882543bf;hb=ad5a9488437b6cd83adb83b5440dc8b3806ae80a;hp=7f1c1077feaaa5f138ff392b009bd1f70afc6a22;hpb=e9dce696401113077b0de97f3a5f370206942c3d;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index 7f1c1077f..0fc6d1e41 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -1,11 +1,15 @@ +define activate_munin_check($name) { + file { "/etc/munin/plugins/$name": + ensure => "/usr/share/munin/plugins/$name", + notify => Exec["munin-node restart"]; + } +} + class munin-node { - package { munin-node: ensure => latest } + package { munin-node: ensure => installed } file { "/etc/munin/munin-node.conf": - owner => root, - group => root, - mode => 664, source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf", "puppet:///munin-node/common/munin-node.conf" ], require => Package["munin-node"], @@ -13,7 +17,7 @@ class munin-node { } exec { "munin-node restart": - path => "/etc/init.d/", + path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", refreshonly => true, } }