summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-04-18 13:26:57 -0400
committerMicah Anderson <micah@riseup.net>2012-04-18 13:26:57 -0400
commit9db98da33c10a6cfac0867b9ae56ba15c32c46bf (patch)
treeda970c68d49ba97e8f5a5378f5833d6f13e506b2
parent9e22feaca0cd1139611cecc3ee9a88ef5d06cc7a (diff)
fix trocla function lookup in template, without this, you get:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template mysql/root/my.cnf.erb: undefined method `function_trocla' for #<Puppet::Parser::Scope:0xf6457e2c> at /etc/puppet/modules/mysql/manifests/server/base.pp:50 on node
-rw-r--r--templates/root/my.cnf.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/root/my.cnf.erb b/templates/root/my.cnf.erb
index fbc8a0e..26ced1e 100644
--- a/templates/root/my.cnf.erb
+++ b/templates/root/my.cnf.erb
@@ -1,4 +1,4 @@
[client]
user=root
host=localhost
-password=<%= scope.function_trocla("mysql_root_#{scope.lookupvar('::fqdn')}",'plain', 'length' => 32) %>
+password=<%= Puppet::Parser::Functions.function('trocla');'' %><%= scope.function_trocla("mysql_root_#{scope.lookupvar('::fqdn')}",'plain', 'length' => 32) %>