[Puppet Users] Re: Puppet equivalent for mysql[''tunable''] in chef

Christophe L
Tue, 20 Mar 2012 09:46:01 -0000

Thank you !

Best regards,
Christophe

On 19 mar, 23:18, Adam Heinz <a...@metricwise.net>
wrote:
> puppet 2.6+, derived fromhttps://github.com/camptocamp/puppet-mysql
>
>   $mycnf = $::operatingsystem ? {
>     /RedHat|Fedora|CentOS/ => "/etc/my.cnf",
>     default => "/etc/mysql/my.cnf",
>   }
>
>   augeas { $mycnf:
>     context => "/files$mycnf",
>     changes => [
>       "set mysqld/key_buffer 250M",
>       "set mysqld/max_connections 800",
>       "set mysqld/wait_timeout 180",
>     ],
>     require => Package["mysql"],
>     notify => Service["mysql"],
>     incl    => $mycnf,
>     lens    => "Mysql.lns",
>   }