From: Luca Filipozzi <lfilipoz@emyr.net>
Date: Wed, 16 May 2012 09:12:07 +0000 (+0000)
Subject: try in template
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8a0a0e9491818862feeb0b1cffa81fb2a35a176e;p=dsa-puppet.git

try in template
---

diff --git a/modules/puppetmaster/files/hiera.yaml b/modules/puppetmaster/files/hiera.yaml
index 98411f6c..9304c0e4 100644
--- a/modules/puppetmaster/files/hiera.yaml
+++ b/modules/puppetmaster/files/hiera.yaml
@@ -1,6 +1,8 @@
 ---
 :hierarchy:
   - %{hoster}
+  - machines/${fqdn}
+  - clusters/${cluster}
   - common
 :backends:
   - yaml
diff --git a/modules/ssh/templates/authorized_keys.erb b/modules/ssh/templates/authorized_keys.erb
index 23ee49b7..e0f97b48 100644
--- a/modules/ssh/templates/authorized_keys.erb
+++ b/modules/ssh/templates/authorized_keys.erb
@@ -24,6 +24,9 @@ localkeys
 end
 ganetikeys
 %>
+<% Puppet::Parser::Functions.function('hiera') -%>
+<% Puppet::Parser::Functions.function('hiera_array') -%>
+#<%= scope.function_hiera('cluster') %>
 #
 # DSA
 #