Class mysql::server
In: /modules/mysql/manifests/server.pp
Parent:

Resources

Resources

Class["mysql::backup"]
   backup_dir => $backup_dir
   backup_hour => $backup_hour
   backup_minute => $backup_minute
   backup_keepdays => $backup_keepdays
   ensure => $backup ? { true => "present", false => "absent" }
Exec["set_mysql_root_password"]
   command => mysql -uroot -e "UPDATE mysql.user SET Password = PASSWORD('$root_password') WHERE User = 'root'; flush privileges"
   unless => egrep -q '^password=$root_password$' /root/.my.cnf
   require => Service["mysqld"]
   before => File["/root/.my.cnf"]
   path => ["/bin", "/usr/bin"]
File["/root/.my.cnf"]
   content => template("mysql/root-my.cnf.erb")
   require => Package["mysql-server"]
   owner => "root"
   group => "root"
   mode => "0400"
Mysql_database["test"]
   ensure => absent
Mysql_user["@localhost"]
   ensure => absent
Mysql_user[@$::fqdn]
   ensure => absent
Package[$archpackage, "mysql-server"]
   ensure => installed
Service["mysqld"]
   ensure => running
   enable => true
   hasstatus => true
   require => Package["mysql-server"]

[Validate]