From: Silvio Rhatto Date: Thu, 12 Apr 2018 19:10:31 +0000 (-0300) Subject: Adds order param into database::config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=07532a233ec39bf964800f88d07f87eecf96b50c;p=puppet-database.git Adds order param into database::config --- 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,