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:
41e6bec
)
er, we want a string
author
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 09:04:27 +0000
(10:04 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 09:04:27 +0000
(10:04 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ssh/templates/authorized_keys.erb
patch
|
blob
|
history
diff --git
a/modules/ssh/templates/authorized_keys.erb
b/modules/ssh/templates/authorized_keys.erb
index
eb10438
..
b7225a5
100644
(file)
--- a/
modules/ssh/templates/authorized_keys.erb
+++ b/
modules/ssh/templates/authorized_keys.erb
@@
-22,7
+22,7
@@
localkeys
<%=
ganetikeys = []
allnodeinfo = scope.lookupvar('site::allnodeinfo')
- scope.lookupvar('::cluster_nodes').to_
a.flatten
.split.sort.each do |node|
+ scope.lookupvar('::cluster_nodes').to_
s
.split.sort.each do |node|
if allnodeinfo.has_key?(node)
ganetikeys << "# for ganeti: #{allnodeinfo[node]['hostname'].to_s}"
ganetikeys << "from=\"#{allnodeinfo[node]['ipHostNumber'].join(',')}\" #{allnodeinfo[node]['sshRSAHostKey'].to_s}"