X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fferm%2Ftemplates%2Fme.conf.erb;h=8c3c234e02267799e1bb34a6323275e92dc15b00;hb=607b40b133d356887da035d04f677d19e641706f;hp=4c12bd55e7dd289562aaf4c4dc3bebce78509f2f;hpb=4b22086f6f79221555bcaab12b4553ae232b8f9d;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/templates/me.conf.erb b/modules/ferm/templates/me.conf.erb index 4c12bd55e..8c3c234e0 100644 --- a/modules/ferm/templates/me.conf.erb +++ b/modules/ferm/templates/me.conf.erb @@ -9,7 +9,7 @@ sshallowed = [] case hostname - when 'logtest01' then sshallowed << [ '$DSA_IPS' ] + when 'logtest01' then sshallowed << [ '$DSA_IPS', '$HOST_NAGIOS_V4', '$HOST_DB_V4' ] end if sshallowed.length == 0 @@ -18,3 +18,18 @@ end sshallowed.join(' ') %>); + +@def $SSH_V6_SOURCES = (<%= + +sshallowed = [] + +case hostname + when 'logtest01' then sshallowed << [ '$DSA_V6_IPS', '$HOST_NAGIOS_V6', '$HOST_DB_V6' ] +end + +if sshallowed.length == 0 + sshallowed = [ ':::' ] +end + +sshallowed.join(' ') +%>);