Recent version of puppetlabs/mysql [1] have removed the
legacy (old API) function mysql_password and now expose
it via the modern Ruby functions API [2].
with the modern functions API, "if a module has a list
of dependencies in its metadata.json file, it loads custom
functions only from those specific dependencies." [3]
Since puppet-tripleo explicitly calls mysql_password,
we now have to fix metadata.json to explicit the
dependency on puppetlabs/mysql.
Reviewed: https:/ /review. opendev. org/727438 /git.openstack. org/cgit/ openstack/ puppet- tripleo/ commit/ ?id=ea6e31cf87a acc80fa6cafc444 e8654bc486bc02
Committed: https:/
Submitter: Zuul
Branch: master
commit ea6e31cf87aacc8 0fa6cafc444e865 4bc486bc02
Author: Damien Ciabrini <email address hidden>
Date: Tue May 12 22:26:53 2020 +0200
Fix puppetlabs/mysql dependency in metadata.json
Recent version of puppetlabs/mysql [1] have removed the
legacy (old API) function mysql_password and now expose
it via the modern Ruby functions API [2].
with the modern functions API, "if a module has a list
of dependencies in its metadata.json file, it loads custom
functions only from those specific dependencies." [3]
Since puppet-tripleo explicitly calls mysql_password,
we now have to fix metadata.json to explicit the
dependency on puppetlabs/mysql.
Related-Bug: #1878153
[1] https:/ /github. com/puppetlabs/ puppetlabs- mysql/commit/ 39b7bdef1ae162b 5d00be95459eafe 31820cfd61 /puppet. com/docs/ puppet/ 5.5/functions_ basics. html /puppet. com/docs/ puppet/ 5.5/lang_ write_functions _in_puppet. html#calling- a-function
[2] https:/
[3] https:/
Change-Id: I5a89d0bf25c797 3a69ee31d3dee6d c8151a9b1e2