add first stab at interfaces
authorStephen Gran <steve@lobefin.net>
Sat, 6 Mar 2010 15:29:49 +0000 (15:29 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 6 Mar 2010 15:29:49 +0000 (15:29 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/templates/interfaces.conf.erb [new file with mode: 0644]

diff --git a/modules/ferm/templates/interfaces.conf.erb b/modules/ferm/templates/interfaces.conf.erb
new file mode 100644 (file)
index 0000000..17c0c66
--- /dev/null
@@ -0,0 +1,8 @@
+$MUNIN_IFS = (<%=
+ifs = []
+interfaces.split(',').each do |iface|
+  next unless Kernel.local_variables.include?("ipaddress_" + iface)
+  ifs << iface
+ifs.join(' ')
+%>);
+