X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fferm%2Fmanifests%2Freal.pp;h=447ab751f0c3ee20572e76b65e4eb53f5812e72c;hb=c7efeb3b34546e8c252d9a258346f5251953bef4;hp=f891c9273e1b60b7b9cf0072e603cd121194ede9;hpb=c944b25ac3bf9180722c597a9c310d2f244cbdc7;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/manifests/real.pp b/modules/ferm/manifests/real.pp index f891c9273..447ab751f 100644 --- a/modules/ferm/manifests/real.pp +++ b/modules/ferm/manifests/real.pp @@ -9,37 +9,22 @@ class ferm::real inherits ferm { "/etc/ferm/ferm.conf": source => "puppet:///ferm/ferm.conf", require => Package["ferm"], + mode => 0400, notify => Exec["ferm restart"]; "/etc/ferm/conf.d/me.conf": content => template("ferm/me.conf.erb"), require => Package["ferm"], + mode => 0400, notify => Exec["ferm restart"]; "/etc/ferm/conf.d/defs.conf": source => "puppet:///ferm/defs.conf", require => Package["ferm"], + mode => 0400, notify => Exec["ferm restart"]; } - ferm::rule { "dsa-ssh": - description => "Allow SSH from DSA", - rule => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_SOURCES) ACCEPT; }" - } - ferm::rule { "dsa-ssh-v6": - description => "Allow SSH from DSA", - domain => "ip6", - rule => "proto tcp mod state state (NEW) dport (ssh) @subchain 'ssh' { saddr (\$SSH_V6_SOURCES) ACCEPT; }" - } - ferm::rule { "dsa-munin": - description => "Allow munin from munin master", - rule => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN) ACCEPT; }" - } - ferm::rule { "dsa-nagios": - description => "Allow nrpe from nagios master", - rule => "proto tcp mod state state (NEW) dport (5666) @subchain 'nagios' { saddr (\$HOST_NAGIOS) ACCEPT; }" - } - Exec["ferm restart"] { - path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin", + command => "/etc/init.d/ferm restart", refreshonly => true, } }