X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin-node%2Fmanifests%2Finit.pp;h=ab177817e3f85e7a9631fbab948a71fc64b1a17a;hb=a3dc39e898c946c2390908ef90ed35bfcda1a76f;hp=0849cc1bd235e6ca98075e7e7dc63ca28444fc43;hpb=8e9a688dd67c65c08c9c4f90bf0f5a7df15549a5;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index 0849cc1bd..ab177817e 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -54,14 +54,19 @@ class munin-node { case $vsftpd { "true": { - include munin-node::vsftpd + package { + "logtail": ensure => installed; + } + activate_munin_check { + "vsftpd":; + "ps_vsftpd": script => "ps_"; + } } } file { "/etc/munin/munin-node.conf": - source => [ "puppet:///munin-node/per-host/$fqdn/munin-node.conf", - "puppet:///munin-node/common/munin-node.conf" ], + content => template("munin-node/munin-node.conf.erb"), require => Package["munin-node"], notify => Exec["munin-node restart"]; @@ -75,10 +80,19 @@ class munin-node { path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", refreshonly => true, } - ferm::rule { "dsa-munin": - domain => "(ip ip6)", + @ferm::rule { "dsa-munin-v4": description => "Allow munin from munin master", - rule => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN) ACCEPT; }" + rule => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN_V4 \$HOST_NAGIOS_V4) ACCEPT; }", + notarule => true, + } + @ferm::rule { "dsa-munin-v6": + description => "Allow munin from munin master", + domain => "ip6", + rule => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN_V6 \$HOST_NAGIOS_V6) ACCEPT; }", + notarule => true, } } +# vim:set et: +# vim:set sts=4 ts=4: +# vim:set shiftwidth=4: