diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-04-12 16:10:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-04-12 16:10:31 -0300 |
commit | 07532a233ec39bf964800f88d07f87eecf96b50c (patch) | |
tree | ea611b356e1fd98a8af2eb880d4be88aa3f27f3b | |
parent | 6e67ade0e843ff1567f99b9cba423fe88373016c (diff) | |
download | puppet-database-07532a233ec39bf964800f88d07f87eecf96b50c.tar.gz puppet-database-07532a233ec39bf964800f88d07f87eecf96b50c.tar.bz2 |
Adds order param into database::config
-rw-r--r-- | manifests/config.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 887a7f4..92a8b6a 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,5 +1,6 @@ define database::config( $value, + $order = 'zz', $section = '', $ensure = 'present' ) { @@ -16,7 +17,17 @@ define database::config( default => $section, } + # Old file file { "/etc/mysql/${real_section}/${name}.cnf": + ensure => absent, + } + + # Old file + file { "/etc/mysql/conf.d/${name}.cnf": + ensure => absent, + } + + file { "/etc/mysql/${order}-${real_section}/${name}.cnf": ensure => $ensure, owner => root, group => root, |