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:
8bee4dc
)
try hiera_array
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 09:30:09 +0000
(09:30 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 09:30:09 +0000
(09:30 +0000)
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
e0f97b4
..
cff49a3
100644
(file)
--- a/
modules/ssh/templates/authorized_keys.erb
+++ b/
modules/ssh/templates/authorized_keys.erb
@@
-26,7
+26,11
@@
ganetikeys
%>
<% Puppet::Parser::Functions.function('hiera') -%>
<% Puppet::Parser::Functions.function('hiera_array') -%>
-#<%= scope.function_hiera('cluster') %>
+# <%=
+ cluster = scope.function_hiera('cluster')
+ nodes = scope.merge('cluster' => cluster).function_hiera_array('nodes')
+ nodes.join("\n")
+%>
#
# DSA
#