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