From: Luca Filipozzi Date: Wed, 16 May 2012 09:30:09 +0000 (+0000) Subject: try hiera_array X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=953fdade990f9b0e7807bffad34b06e413f5e78d;p=mirror%2Fdsa-puppet.git try hiera_array --- 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 #