Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

puppet to override bind-address mysql variable

Tags:

mysql

puppet

I am using https://github.com/puphpet/puppetlabs-mysql to set up mysql configuration and I need to change bind-address variable to 0.0.0.0.

I am trying to do that as

mysql::config::override_options {
    'mysqld' : 'bind-address' => '0.0.0.0'
}

but it doesn't work.

Can you help me to advise how this should be done?

Thank you in advance!

like image 311
Yuriy Gerasimov Avatar asked Nov 27 '13 14:11

Yuriy Gerasimov


3 Answers

The answers don't seem to comply to the latest version of the module (> 3.1).

You can use:

    class { '::mysql::server':
      override_options => {
        mysqld => { bind-address => '0.0.0.0'} #Allow remote connections
      },
      # ... other class options
    }
like image 141
mmey Avatar answered Oct 30 '22 22:10

mmey


bind_address instead bind-address

like image 3
Diam0n_UA Avatar answered Oct 30 '22 23:10

Diam0n_UA


You should be passing it directly to the mysql class:

class { 'mysql':
    bind_address => '0.0.0.0',
}
like image 1
xiankai Avatar answered Oct 30 '22 23:10

xiankai