Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
puppet覆盖绑定地址mysql变量_Mysql_Puppet - Fatal编程技术网

puppet覆盖绑定地址mysql变量

puppet覆盖绑定地址mysql变量,mysql,puppet,Mysql,Puppet,我正在使用设置mysql配置,需要将bind address变量更改为0.0.0.0 我正努力做到这一点 mysql::config::override_options { 'mysqld' : 'bind-address' => '0.0.0.0' } 但它不起作用 你能帮我建议怎么做吗 提前谢谢你 bind\u address而不是bind address您应该将其直接传递给mysql类: class { 'mysql': bind_address => '0.

我正在使用设置mysql配置,需要将bind address变量更改为0.0.0.0

我正努力做到这一点

mysql::config::override_options {
    'mysqld' : 'bind-address' => '0.0.0.0'
}
但它不起作用

你能帮我建议怎么做吗


提前谢谢你

bind\u address而不是bind address

您应该将其直接传递给
mysql
类:

class { 'mysql':
    bind_address => '0.0.0.0',
}

答案似乎不符合模块的最新版本(>3.1)

您可以使用:

    class { '::mysql::server':
      override_options => {
        mysqld => { bind-address => '0.0.0.0'} #Allow remote connections
      },
      # ... other class options
    }

谢谢你的回答!我的问题是使用破折号而不是下划线。这个答案现在也过时了。这应该是当前更新版本puppet的正确答案。这个答案已经过时了。