From: Stephen Gran Date: Thu, 22 Dec 2011 10:36:00 +0000 (+0000) Subject: the inevitable take two X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f2cf3d153d0a682b54a067f0177e3b777ee4e60b;p=mirror%2Fdsa-puppet.git the inevitable take two Signed-off-by: Stephen Gran --- diff --git a/modules/ferm/templates/me.conf.erb b/modules/ferm/templates/me.conf.erb index 797560bbf..7069f592a 100644 --- a/modules/ferm/templates/me.conf.erb +++ b/modules/ferm/templates/me.conf.erb @@ -10,8 +10,8 @@ restricted_purposes = {'kvm host', 'central syslog server', 'puppet master', 'ju restrict_ssh = %w{lebrun logtest01 geo1 geo2 geo3 beethoven tchaikovsky schroeder rossini draghi} if (nodeinfo['ldap'].has_key?('purpose')) then - restricted_purposes.each do |purp| - if nodeinfo['ldap']['purpose'].include?(purp) then + nodeinfo['ldap']['purpose'].each do |purp| + if restricted_purposes.include?(purp) then restrict_ssh << hostname end end