X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Fmanifests%2Finit.pp;h=29bef07fef85f8b3fae7be4f6dcf80cc72a70ca4;hb=bdf6bb287648446a1b307811db95777989d80b7b;hp=d6336c8534b1bf0ae763d581fd8c401c8acdaa8c;hpb=7d26e0e520afacec1f1e08112fac99b8273ac64d;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index d6336c853..29bef07fe 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -1,4 +1,4 @@ -define activate_munin_check($ensure=present, script=$name) { +define activate_munin_check($ensure=present, $script=$name) { case $script { "": { $base = $name } default: { $base = $script } @@ -52,6 +52,12 @@ class munin-node { } } + case $vsftpd { + "true": { + include munin-node::vsftpd + } + } + file { "/etc/munin/munin-node.conf": source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf", @@ -60,8 +66,7 @@ class munin-node { notify => Exec["munin-node restart"]; "/etc/munin/plugin-conf.d/munin-node": - source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.plugin.conf", - "puppet:///munin-node/common/munin-node.plugin.conf" ], + content => template("munin-node/munin-node.plugin.conf.erb"), require => Package["munin-node"], notify => Exec["munin-node restart"]; }