X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fferm%2Ftemplates%2Finterfaces.conf.erb;h=82bdb0925a4e6819810409c8043abf1f4435c239;hb=fd6b464b0da569ba84e2f260a666c257b5773f93;hp=17c0c6674ce884ffacd94f8d65d0eecfbafb9351;hpb=b518be1306dde4a620e067aa85904ec0e99eb705;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/templates/interfaces.conf.erb b/modules/ferm/templates/interfaces.conf.erb index 17c0c6674..82bdb0925 100644 --- a/modules/ferm/templates/interfaces.conf.erb +++ b/modules/ferm/templates/interfaces.conf.erb @@ -1,8 +1,13 @@ -$MUNIN_IFS = (<%= -ifs = [] -interfaces.split(',').each do |iface| - next unless Kernel.local_variables.include?("ipaddress_" + iface) - ifs << iface -ifs.join(' ') -%>); +def $MUNIN_IPS = (<%= v4ips.split(',').join(' ') %>); +domain ip { + chain INPUT { + daddr ($MUNIN_IPS) NOP; + } +} + +domain ip { + chain OUTPUT { + saddr ($MUNIN_IPS) NOP; + } +}