diff --git a/manifests/init.pp b/manifests/init.pp index 9659cae..9fb0f73 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -244,6 +244,7 @@ $custom_decompression_filter = $::barman::settings::custom_decompression_filter, $exported_ipaddress = "${::ipaddress}/32", $home = $::barman::settings::home, + $home_mode = $::barman::settings::home_mode, $host_group = $::barman::settings::host_group, $immediate_checkpoint = $::barman::settings::immediate_checkpoint, $last_backup_maximum_age = $::barman::settings::last_backup_maximum_age, @@ -438,7 +439,7 @@ ensure => $ensure_directory, owner => $user, group => $group, - mode => '0750', + mode => $home_mode, require => Package['barman'] } diff --git a/manifests/settings.pp b/manifests/settings.pp index 4cafd37..60bc09e 100644 --- a/manifests/settings.pp +++ b/manifests/settings.pp @@ -47,6 +47,7 @@ $dbuser = 'barman', $dbname = 'postgres', $home = '/var/lib/barman', + $home_mode = '0750', $archiver = true, $archiver_batch_size = undef, $backup_method = undef,