Skip to content

changed log_error to log-error and pid_file to pid-file to match the mys... #394

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 1 commit into from
Dec 20, 2013

Conversation

danielfoglio
Copy link

...qld service script

@igalic
Copy link
Contributor

igalic commented Dec 13, 2013

how come this works now?

@danielfoglio
Copy link
Author

The mysql daemon script uses default values if it cannot find the value specified in /etc/my.cnf file: datadir, pid-file, log-error, and (i believe) socket. Having incorrect keys (log_error and pid_file), will always assign the defaults hard coded in the script and not what this module is writing in its /etc/my.cnf . If you were to pass pid-file => /your/path in the override options like:
class { '::mysql::server':
root_password => $root_password,
restart => true,
override_options => {
'mysqld_safe' => {
'pid-file' => '/your/path'
},
'mysqld' => {
'pid-file' => '/your/path'
}
}
}
the /etc/my.cnf would contain both pid_file and pid-file, but use pid-file.
Bottom line the init.d script is not going to use the values assigned to pid_file and log_error, it will use the default values (which are the same as the values puppetlabs thinks are being read from the mysql::params class).
sudo cat /etc/init.d/${mysql service name - defaults to mysqld in this module} on a vagrant vm and you can see for yourself.

@igalic
Copy link
Contributor

igalic commented Dec 14, 2013

#395 is also part of the picture

@igalic
Copy link
Contributor

igalic commented Dec 15, 2013

Will now need a rebase, can you do that, please?

@danielfoglio
Copy link
Author

Rebase is not the correct way to do this. You would want to keep the commit history between my original pull request AND show me merging upstream.

@igalic
Copy link
Contributor

igalic commented Dec 16, 2013

rebase is the way we do things around here.
Rebase means nothing other than : fetch from upstream, replay my changes on top of upstream's master

@danielfoglio
Copy link
Author

rebased

@danielfoglio
Copy link
Author

?

@danielfoglio
Copy link
Author

rebased again.. It needs merged so I dont have to keep doing it..

apenney pushed a commit that referenced this pull request Dec 20, 2013
changed log_error to log-error and pid_file to pid-file to match the mys...
@apenney apenney merged commit edfaecc into puppetlabs:master Dec 20, 2013
@apenney
Copy link
Contributor

apenney commented Dec 20, 2013

Sorry for the delay on this one, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants