X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fclient.pp;h=83d0253079e0d5fa282db8faa9a67eac6abd4114;hb=825e27050780ecccd54fb81d9d8f0ce7a3395caf;hp=bfceebf722725e3270a83304850dae9344ba8917;hpb=4b12f0d2a6ab1166b3d0cc7412789a7279a47b62;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index bfceebf72..83d025307 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -8,12 +8,22 @@ # @param port_fd port that bacula-fd listens on # @param client_name bacula client name for this instance # @param ensure present or absent +# @param volume_retention_full how long to keep volumes with full backups +# @param volume_retention_diff how long to keep volumes with differential backups +# @param volume_retention_inc how long to keep volumes with incremental backups +# @param file_retention how long to keep information about which files are in which volumes/jobs +# @param job_retention how long to keep job records class bacula::client( Stdlib::Host $director_server, Stdlib::Host $storage_server, Integer $port_fd = 9102, String $client_name = "${::fqdn}-fd", Enum['present', 'absent'] $ensure = defined(Class['bacula::not_a_client']) ? { true => 'absent', default => 'present' }, + String $volume_retention_full = '100 days', + String $volume_retention_diff = '50 days', + String $volume_retention_inc = '30 days', + String $file_retention = '30 days', + String $job_retention = $volume_retention_full, ) inherits bacula { $package_ensure = $ensure ? { 'present' => 'installed', 'absent' => 'purged' } $service_ensure = $ensure ? { 'present' => 'running', 'absent' => 'stopped' } @@ -39,9 +49,12 @@ class bacula::client( } @@bacula::storage::client { $client: - tag => "bacula::to-storage::${storage_server}", - client => $client, - director_server => $director_server, + tag => "bacula::to-storage::${storage_server}", + client => $client, + director_server => $director_server, + volume_retention_full => $volume_retention_full, + volume_retention_diff => $volume_retention_diff, + volume_retention_inc => $volume_retention_inc, } @@concat::fragment { "bacula-dsa-client-list::${client}":