From 0cdf8d63d8e4f8a08efe2e8424a1e66444f2915e Mon Sep 17 00:00:00 2001 From: jas01 Date: Tue, 27 Aug 2019 16:41:39 +0200 Subject: [PATCH] Fix group on FreeBSD The server::backup class don't use the correct information from mysql::params about backupdirgroup. Because on FreeBSD the group root doesn't exist it should use wheel instead. This difference are correctly configure inside mysql::params but not inside server::backup --- manifests/server/backup.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/server/backup.pp b/manifests/server/backup.pp index 0b462b986..bc4f925f5 100644 --- a/manifests/server/backup.pp +++ b/manifests/server/backup.pp @@ -69,7 +69,7 @@ $backupdir = undef, $backupdirmode = '0700', $backupdirowner = 'root', - $backupdirgroup = 'root', + $backupdirgroup = $mysql::params::root_group, $backupcompress = true, $backuprotate = 30, $backupmethod = undef, @@ -88,7 +88,7 @@ $provider = 'mysqldump', $maxallowedpacket = '1M', $optional_args = [], -) { +) inherits mysql::params { if $prescript and $provider =~ /(mysqldump|mysqlbackup)/ { warning(translate("The 'prescript' option is not currently implemented for the %{provider} backup provider.",