From 953fdade990f9b0e7807bffad34b06e413f5e78d Mon Sep 17 00:00:00 2001 From: Luca Filipozzi Date: Wed, 16 May 2012 09:30:09 +0000 Subject: [PATCH] try hiera_array --- modules/ssh/templates/authorized_keys.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ssh/templates/authorized_keys.erb b/modules/ssh/templates/authorized_keys.erb index e0f97b48a..cff49a3e9 100644 --- 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 # -- 2.20.1