projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ad39a
)
Commit fix for iterating over sso nodes
author
Peter Palfrader
<peter@palfrader.org>
Tue, 1 Sep 2015 09:48:21 +0000
(09:48 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Tue, 1 Sep 2015 09:48:21 +0000
(09:48 +0000)
modules/roles/templates/sso_rp/ca.crl.erb
patch
|
blob
|
history
diff --git
a/modules/roles/templates/sso_rp/ca.crl.erb
b/modules/roles/templates/sso_rp/ca.crl.erb
index
b102218
..
1427d46
100644
(file)
--- 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