Skip to content

Instantly share code, notes, and snippets.

@stanlemon
Created March 16, 2013 21:31
Show Gist options
  • Save stanlemon/5178407 to your computer and use it in GitHub Desktop.
Save stanlemon/5178407 to your computer and use it in GitHub Desktop.
A sample puppet manifest for configuring Percona with the mysql module.
yumrepo { "Percona":
name => "Percona",
descr => "Percona Server",
baseurl => "http://repo.percona.com/centos/\$releasever/os/\$basearch/",
enabled => 1,
gpgcheck => 0,
}
file { '/etc/init.d/mysqld':
ensure => 'link',
target => '/etc/init.d/mysql',
}
class { 'mysql':
require => [ Yumrepo["Percona"], File['/etc/init.d/mysqld'] ],
package_name => 'Percona-Server-client-55',
package_ensure => latest,
}
class { 'mysql::server':
require => [ Yumrepo["Percona"], File['/etc/init.d/mysqld'] ],
package_name => 'Percona-Server-server-55',
package_ensure => latest,
service_name => 'mysql',
config_hash => {
'pidfile' => '/var/lib/mysql/localhost.localdomain.pid',
'bind_address' => '0.0.0.0',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment