Skip to content
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

handling of my.cnf config file is now optional #132

Merged
merged 1 commit into from Jul 2, 2013
Merged

handling of my.cnf config file is now optional #132

merged 1 commit into from Jul 2, 2013

Conversation

savar
Copy link
Contributor

@savar savar commented Dec 8, 2012

This adds a parameter (default value is like old behavior) so that the
my.cnf file isn't managed (created/updated) by the mysql module at all
which is necessary for our environment. We need to set all parameters by
ourself. If we don't set a parameter then the default from the mysqld
binary should be used instead of any default parameter the mysql module
provides us.


if $manage_config_file and $config_file =~ /^\/etc\/mysql\// {
File['/etc/mysql'] -> File[$config_file]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should not be needed due to implicit dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point.. I changed it..

@apenney
Copy link
Contributor

apenney commented Jul 2, 2013

Hi,

Would it be possible to rebase this change against an updated copy of master? In addition we'd need some rspec-puppet tests before we could merge this in. There's a bunch of pre-existing tests in spec/classes/mysql_config_spec.rb that you can crib from to put together two tests, one for each boolean.

Let me know if you run into any problems with specs or simply don't have the time to take this on (or simply don't care about this feature anymore!).

This adds a parameter (default value is like old behavior) so that the
my.cnf file isn't managed (created/updated) by the mysql module at all
which is necessary for our environment. We need to set all parameters by
ourself. If we don't set a parameter then the default from the mysqld
binary should be used instead of any default parameter the mysql module
provides us.
@savar
Copy link
Contributor Author

savar commented Jul 2, 2013

I tried to sync with master. I hope it is acceptable.

apenney added a commit that referenced this pull request Jul 2, 2013
handling of my.cnf config file is now optional
@apenney apenney merged commit 9839a1c into puppetlabs:master Jul 2, 2013
pmcmaw pushed a commit to pmcmaw/puppetlabs-mysql that referenced this pull request Mar 3, 2021
Run pdk update to obtain .travis.yml template update
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.

None yet

4 participants