Skip to content

Root credentials #123

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

Merged
merged 3 commits into from
Oct 9, 2012
Merged

Root credentials #123

merged 3 commits into from
Oct 9, 2012

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Oct 9, 2012

From #92:

The mysql root password is stored in .my.cnf in root's home directory. However, the mysql and mysqladmin commands use the value of the HOME environment variable rather than libc user ent data to determine the location of .my.cnf. This causes the puppet module's mysql and mysqladmin invocations to fail when HOME and the current user's home directory are not the same, e.g. if the puppet process was started using sudo.

I had created a pull request earlier and then got talked out of it. My initial discovery was that 'sudo puppet agent -t' failed but the running puppet daemon was able to apply the catalog. Someone suggested sudo -i puppet agent -t which works. I have since discovered that even restarting the agent daemon with sudo (sudo /etc/init.d/puppet restart) causes the a mismatch. This is much more insidious because the running daemon will fail on every run.

inkblot and others added 3 commits October 9, 2012 13:59
This is necessary when running puppet as root using sudo because mysql
will still look in the user's home directory in that case unless told
otherwise.
hunner added a commit that referenced this pull request Oct 9, 2012
@hunner hunner merged commit 837e839 into puppetlabs:master Oct 9, 2012
pmcmaw pushed a commit to pmcmaw/puppetlabs-mysql that referenced this pull request Mar 3, 2021
(PDK-1501) Allow Appveyor CI config to be templated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants