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
This commit is contained in:
Micah Anderson 2012-04-18 13:26:57 -04:00
parent 9e22feaca0
commit 9db98da33c

View file

@ -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) %>