Comment 3 for bug 1878153

Revision history for this message
Damien Ciabrini (dciabrin) wrote :

After some investigation with Yatin, the problem seems a bit more complicated.

The commit from the bug description effectively stop providing function mysql_password via the old Ruby function API, and now just expose it via the modern Ruby function API [1].

In the case of tripleo, puppet autoloader only consider such functions if they come from modules explicitly listed as tripleo dependencies in metadata.json. And puppetlabs/mysql is not explicitely liste as a dependency. So autoloading would break.

Adding puppetlabs/mysql as a dependency seems to fix the issue that we saw. I can run container-puppet-mysql succesfully now.

As a side note, mysql_password has also become deprecated and replaced with the namespaced equivalent mysql::password. So using that variant will also help preventing future breakages.

[1] https://puppet.com/docs/puppet/5.5/functions_basics.html