]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ferm/templates/me.conf.erb
how bad can this go
[dsa-puppet.git] / modules / ferm / templates / me.conf.erb
index fcf73741c7c223768a3e22b8fbc69051e8570396..4c12bd55e7dd289562aaf4c4dc3bebce78509f2f 100644 (file)
@@ -4,9 +4,17 @@
 ##
 
 
-@def $SSH_SOURCES = <%=
-sshallowed = case hostname
-  when 'logtest01' then '0.0.0.0/0'
+@def $SSH_SOURCES = (<%=
+
+sshallowed = []
+
+case hostname
+  when 'logtest01' then sshallowed << [ '$DSA_IPS' ]
 end
-sshallowed
-%>
+
+if sshallowed.length == 0
+  sshallowed = [ '0.0.0.0' ]
+end
+
+sshallowed.join(' ')
+%>);