Skip to content

Use $root_home for .my.cnf #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Use $root_home for .my.cnf #153

wants to merge 2 commits into from

Conversation

paramite
Copy link
Contributor

File .my.cnf should not use hardcoded /root path

@bodepd
Copy link
Contributor

bodepd commented Mar 21, 2013

where does root_home come from?

@derekhiggins
Copy link
Contributor

@bodepd

It looks like root_home is a fact that is in stdlib
https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/facter/root_home.rb

Stdlib is already needed by this module, and this fact is currently used in some of the providers e.g.
https://github.com/puppetlabs/puppetlabs-mysql/blob/master/lib/puppet/provider/database_grant/mysql.rb#L200

@apenney
Copy link
Contributor

apenney commented Jul 2, 2013

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.

@paramite
Copy link
Contributor Author

paramite commented Jul 4, 2013

Sure, will check that

@paramite
Copy link
Contributor Author

paramite commented Jul 8, 2013

Created new pull request with tests fixed.

#214

@paramite paramite closed this Jul 8, 2013
pmcmaw pushed a commit to pmcmaw/puppetlabs-mysql that referenced this pull request Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants