From: Peter Palfrader Date: Tue, 1 Sep 2015 09:48:21 +0000 (+0000) Subject: Commit fix for iterating over sso nodes X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ed93448880e5f5608a17b7f5f9d4ebe91e23090f;p=mirror%2Fdsa-puppet.git Commit fix for iterating over sso nodes --- diff --git a/modules/roles/templates/sso_rp/ca.crl.erb b/modules/roles/templates/sso_rp/ca.crl.erb index b10221819..1427d460d 100644 --- a/modules/roles/templates/sso_rp/ca.crl.erb +++ b/modules/roles/templates/sso_rp/ca.crl.erb @@ -9,12 +9,10 @@ def getcrl(host) return crl end -allnodeinfo = scope.lookupvar('site::allnodeinfo') crl = [] -allnodeinfo.keys.sort.each do |node| - next unless scope.lookupvar('site::allnodeinfo')[node]['purpose'] - next unless scope.lookupvar('site::allnodeinfo')[node]['purpose'].include?('sso') +roles = scope.lookupvar('site::roles') +roles['sso'].each do |node| c = getcrl(node) next if c.nil? crl << c