From 031a47dfad1b2c78383b80baa6b8fb4ad995321b Mon Sep 17 00:00:00 2001 From: Justin Ellison Date: Tue, 10 Jan 2012 19:17:34 -0600 Subject: [PATCH] Instead of hardcoding the config file target, pull it from mysql::params --- manifests/config.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'), } }