-
Notifications
You must be signed in to change notification settings - Fork 796
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
Support multiple lines of the same option #398
Support multiple lines of the same option #398
Conversation
|
Do we have a safe list of options which can occur multiple times? |
|
Not sure if such a list exists. I asked #mariadb on IRC, they don't think so. At least 9 of replication-related options can have multiple instances:
|
|
can you please add a test and documentation? |
|
sure |
|
Commit updated with doc and test. Is the test in the right place ? Let me know (was not sure about it). |
|
I'm mildly confused that we still have spec/system, since after @apenney switched us over to beaker Generally there are two kinds of tests that we have "system" tests (which are now relocated in spec/acceptance) and "normal" rspec puppet tests (everything else in spec/). Please look at our sister-module's contribution guidelines for more info. |
|
Tests added. As suggested on IRC, added test for
|
|
Thanks for the additional tests! I should probably just yank out spec/system/ now, I just wanted to be sure we were done with the beaker stuff before doing so. I'll take a look at this, mysql makes me sad with how complex my.cnf can be. :) |
Some MySQL options need to be passed several times. For example : http://dev.mysql.com/doc/refman/5.5/en/replication-options-slave.html#option_mysqld_replicate-do-db This is currently impossible with the override_options. This patch allows to pass array as value. Example : override_options => { 'client' => { 'password' => 'xxx', }, 'mysqld' => { 'bind_address' => '0.0.0.0', 'replicate-do-db' => ['base1', 'base2', 'base3'], }, } Which will be evaluated into : [client] password = xxx [mysqld] bind_address = 0.0.0.0 replicate-do-db = base1 replicate-do-db = base2 replicate-do-db = base3
|
Just rebased from puppetlabs-mysql/master |
Support multiple lines of the same option
|
Thanks for this, I had no idea this was allowed in my.cnf, very cool. :) |
Some MySQL options need to be passed several time. Example :
http://dev.mysql.com/doc/refman/5.5/en/replication-options-slave.html#option_mysqld_replicate-do-db
This is currently impossible with the override_options. This patch allows to
pass array as value. Example :
Which will be evaluated into :