puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 790 forks source link

Ensure fact mysql_version exist when granting privileges to xtrabacku… #1595

Open ndelic0 opened 1 year ago

ndelic0 commented 1 year ago

…p user in MySQL 8.0

Summary

PR should allow setting up xtrabackup configuration without breaking initial puppet run as mysql_version fact is not available in the catalog.

Additional Context

Add any additional context about the problem here.

Related Issues (if any)

PR should fixed the issue reported https://github.com/puppetlabs/puppetlabs-mysql/issues/1576

Checklist

Notice: Compiled catalog for localhost.localdomain in environment production in 0.31 seconds
Notice: /Stage[main]/Profile::Mariadb/Package[mysql]/ensure: created
Notice: /Stage[main]/Profile::Mariadb/Package[mariadb]/ensure: created
Notice: /Stage[main]/Mysql::Server::Config/File[/etc/my.cnf.d]/ensure: created
Notice: /Stage[main]/Mysql::Server::Config/File[mysql-config-file]/ensure: defined content as '{sha256}e44307efdb246c98f0320b6f34b3cfc3931b25e3b6fa2f337b6b3ace65825567'
Notice: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: created

in next puppet run backup configs will be applied.

ndelic0 commented 11 months ago

@bastelfreak @alexjfisher I look forward to your feedback on the PR.