Eric Lippmann f47747255e Vagrant: Enable InnoDB
NOTE that if your VM is already provisioned you have to remove
the MySQL ib_logfiles before reprovisioning, i.e.
    $ rm /var/lib/mysql/ib_logfile*

refs #4460
2013-07-29 18:04:13 +02:00

37 lines
550 B
Puppet

# Class: mysql
#
# This class installs the mysql server and client software.
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# include mysql
#
class mysql {
Exec { path => '/usr/bin' }
package {
'mysql':
ensure => installed;
'mysql-server':
ensure => installed;
}
service { 'mysqld':
ensure => running,
require => Package['mysql-server']
}
file { '/etc/my.cnf':
content => template('mysql/my.cnf.erb'),
require => Package['mysql-server'],
notify => Service['mysqld']
}
}