File .my.cnf should not use hardcoded /root path
Use $root_home for .my.cnf
Be more permissive in case /root/.my.cnf
where does root_home come from?
It looks like root_home is a fact that is in stdlib
Stdlib is already needed by this module, and this fact is currently used in some of the providers e.g.
Would it be possible for you to take a look at the broken tests for this PR? I suspect the issue is as simple as needing to set root_home in :facts in the tests so it correctly uses /root/ during testing. If the tests get fixed I can merge this.
Sure, will check that
Created new pull request with tests fixed.