# 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'] } }