icingaweb2/.puppet/modules/mysql/manifests/init.pp

37 lines
543 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', 'mysql-server'
]:
ensure => latest,
}
service { 'mysqld':
ensure => running,
enable => true,
require => Package['mysql-server']
}
file { '/etc/my.cnf':
content => template('mysql/my.cnf.erb'),
require => Package['mysql-server'],
notify => Service['mysqld']
}
}