projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change redirections about policy manual to 302, since a change back to the multi...
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
weblog_destination-authorized_keys.erb
diff --git
a/modules/roles/templates/weblog_destination-authorized_keys.erb
b/modules/roles/templates/weblog_destination-authorized_keys.erb
index
fc21537
..
60867e5
100644
(file)
--- a/
modules/roles/templates/weblog_destination-authorized_keys.erb
+++ b/
modules/roles/templates/weblog_destination-authorized_keys.erb
@@
-13,15
+13,13
@@
def getweblogsynckey(host)
return key
end
return key
end
-localinfo = scope.lookupvar('site::localinfo')
allnodeinfo = scope.lookupvar('site::allnodeinfo')
allnodeinfo = scope.lookupvar('site::allnodeinfo')
+roles = scope.lookupvar('site::roles')
mirrors = []
mirrors = []
-localinfo.keys.sort.each do |node|
- if localinfo[node]['weblog_provider']
+roles['weblog_provider'].each do |node|
key = getweblogsynckey(node)
mirrors << { 'node' => node, 'addr' => allnodeinfo[node]['ipHostNumber'], 'key' => key}
key = getweblogsynckey(node)
mirrors << { 'node' => node, 'addr' => allnodeinfo[node]['ipHostNumber'], 'key' => key}
- end
end
lines = []
end
lines = []