X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Fmanifests%2Finit.pp;h=c3b4a1236a3a4cb6890881be1984daec0216b5d8;hb=af15aa804d934145160f1860fe7a5df49d7c133a;hp=d70ffdc0f9600021d9de015937d241e5e94e5226;hpb=59895548c1eb3504b073e5bc648faa6d3f96b6e6;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index d70ffdc0f..c3b4a1236 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", @@ -69,5 +75,10 @@ class munin-node { path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", refreshonly => true, } + ferm::rule { "dsa-munin": + description => "Allow munin-node from spohr.debian.org", + rule => "proto tcp dport 4949 saddr $HOST_MUNIN ACCEPT", + prio => "02" + } }