content => template('ferm/defs.conf.erb'),
notify => Service['ferm'],
}
- file { '/etc/ferm/conf.d/interfaces.conf':
- content => template('ferm/interfaces.conf.erb'),
+ file { '/etc/ferm/conf.d/50-munin-interfaces.conf':
+ content => template('ferm/conf.d-munin-interfaces.conf.erb'),
notify => Service['ferm'],
}
augeas { 'logrotate_ulogd2':
--- /dev/null
+def $MUNIN_IPS = (<%=
+begin
+ scope.lookupvar('site::nodeinfo')['misc']['v4addrs'].join(' ')
+rescue
+ ''
+end
+%>);
+def $MUNIN_IPS = ($MUNIN_IPS <%=
+begin
+ scope.lookupvar('site::nodeinfo')['misc']['v6addrs'].join(' ')
+rescue
+ ''
+end
+%>);
+
+domain (ip ip6) { chain INPUT { daddr ($MUNIN_IPS) NOP; } }
+domain (ip ip6) { chain OUTPUT { saddr ($MUNIN_IPS) NOP; } }
+++ /dev/null
-def $MUNIN_IPS = (<%=
-begin
- scope.lookupvar('site::nodeinfo')['misc']['v4addrs'].join(' ')
-rescue
- ''
-end
-%>);
-def $MUNIN_IPS = ($MUNIN_IPS <%=
-begin
- scope.lookupvar('site::nodeinfo')['misc']['v6addrs'].join(' ')
-rescue
- ''
-end
-%>);
-
-domain (ip ip6) { chain INPUT { daddr ($MUNIN_IPS) NOP; } }
-domain (ip ip6) { chain OUTPUT { saddr ($MUNIN_IPS) NOP; } }