Instead of hardcoding the config file target, pull it from mysql::params
This commit is contained in:
parent
360eacd4e0
commit
031a47dfad
1 changed files with 2 additions and 1 deletions
|
@ -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'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue