Skip to content

Only set up ordering between the config file and the service if we're managing the config file. #672

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
Mar 11, 2015

Conversation

timmooney
Copy link
Contributor

With latest (3.2.0), if you try use manage_config_file => false, you get an undefined resource for File['mysql-config-file'].

This is because mysql::server::config is conditionally defining that resource, but mysql::server::service is always requiring it.

A different approach to fixing this issue, which arguably has a bit more flexibility for the module end user, would be to leave the code in mysql::server::service as-is, and instead change mysql::server::config so that it always defines a File resource for mysql-config-file, but if manage_config_file is false, it doesn't set any attributes for the File. That allows people to use manage_config_file => false and potentially manage their config some other way, but still have the right ordering for the file and the service resources.

@igalic
Copy link
Contributor

igalic commented Mar 11, 2015

i like this change.

igalic added a commit that referenced this pull request Mar 11, 2015
Only set up ordering between the config file and the service if we're managing the config file.
@igalic igalic merged commit 32329b7 into puppetlabs:master Mar 11, 2015
@mcanevet
Copy link
Contributor

@igalic @mhaskel @cmurphy don't you think this worth a 3.3.1 release?

@igalic
Copy link
Contributor

igalic commented Mar 12, 2015

@mcanevet do you wanna do a pull request for 3.3.1?

@underscorgan
Copy link
Contributor

@igalic @mcanevet if we need a release with this bug fix we will handle all the release prep, no need to submit a pull request for that. We'll look into doing a bugfix for this, though we may just release 3.4.0 as a few features have been added also.

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.

5 participants