]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
restrict schroeder ssh
authorStephen Gran <steve@lobefin.net>
Sun, 21 Mar 2010 09:30:04 +0000 (09:30 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 21 Mar 2010 09:30:04 +0000 (09:30 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/templates/me.conf.erb

index 1f0262f0b68bdff35bcbee940c4e3cb0f32e1bc8..0633e788582edb2ad276c3f4ebb25c6d9d0cd378 100644 (file)
@@ -3,6 +3,14 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
+<%=
+  out=''
+  case hostname
+  when 'schroeder' then 
+    out = '@def $CARNET = ( 193.198.184.8/29 161.53.160.133 161.53.160.90 161.53.11.222 161.53.12.134 161.53.12.142 161.53.12.143 )'
+  end
+  out
+%>
 
 @def $SSH_SOURCES = (<%=
 
@@ -10,6 +18,7 @@ sshallowed = []
 
 case hostname
   when 'logtest01', 'geo1', 'geo2', 'geo3', 'bartok', 'beethoven', 'tchaikovsky' then sshallowed << [ '$DSA_IPS', '$HOST_NAGIOS_V4', '$HOST_DB_V4' ]
+  when 'schroeder' then sshallowed << [ '$DSA_IPS', '$HOST_NAGIOS_V4', '$HOST_DB_V4', '$CARNET' ]
 end
 
 case hostname
@@ -28,7 +37,7 @@ sshallowed.join(' ')
 sshallowed = []
 
 case hostname
-  when 'logtest01', 'geo1', 'geo2', 'geo3', 'bartok', 'beethoven', 'tchaikovsky' then sshallowed << [ '$DSA_V6_IPS', '$HOST_NAGIOS_V6', '$HOST_DB_V6' ]
+  when 'logtest01', 'geo1', 'geo2', 'geo3', 'bartok', 'beethoven', 'schroeder', 'tchaikovsky' then sshallowed << [ '$DSA_V6_IPS', '$HOST_NAGIOS_V6', '$HOST_DB_V6' ]
 end
 
 case hostname