Instead of hardcoding the config file target, pull it from mysql::params

This commit is contained in:
Justin Ellison 2012-01-10 19:17:34 -06:00 committed by Nan Liu
parent 360eacd4e0
commit 031a47dfad

View file

@ -6,6 +6,7 @@ class mysql::config(
# rather or not to store the rootpw in /etc/my.cnf # rather or not to store the rootpw in /etc/my.cnf
$etc_root_password = false $etc_root_password = false
) { ) {
include mysql::params
# manage root password if it is set # manage root password if it is set
if !($root_password == 'UNSET') { if !($root_password == 'UNSET') {
@ -49,7 +50,7 @@ class mysql::config(
mode => '755', mode => '755',
} }
file { '/etc/mysql/my.cnf': file { $mysql::params::config_file:
content => template('mysql/my.cnf.erb'), content => template('mysql/my.cnf.erb'),
} }
} }