puppet 2.6+, derived from https://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",
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.