From f4f6714eca4870420db7963b70869d066e63c637 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 21 Mar 2010 09:30:04 +0000 Subject: [PATCH] restrict schroeder ssh Signed-off-by: Stephen Gran --- modules/ferm/templates/me.conf.erb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/ferm/templates/me.conf.erb b/modules/ferm/templates/me.conf.erb index 1f0262f0..0633e788 100644 --- a/modules/ferm/templates/me.conf.erb +++ b/modules/ferm/templates/me.conf.erb @@ -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 -- 2.39.2