puppetlabs/puppetlabs-mysql — pull request #398 by fridim (2013-12-16 19:21:27+00:00)
Title: Support multiple lines of the same option

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 :

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