From 9db98da33c10a6cfac0867b9ae56ba15c32c46bf Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 18 Apr 2012 13:26:57 -0400 Subject: 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 # at /etc/puppet/modules/mysql/manifests/server/base.pp:50 on node --- templates/root/my.cnf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) %> -- cgit v1.2.3