X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fstorage.pp;h=1e538bf17cd1f158cf00bc6d731cd5e55d6a6832;hb=3661675fcab6a1dab09910456c98f19aaa50b395;hp=b86f8da756c2bf4b0b48a73c3fb7ed7020a63a0b;hpb=0a7ad11dd0195fc89e1f0edb3f34709aeb0549a9;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp index b86f8da75..1e538bf17 100644 --- a/modules/bacula/manifests/storage.pp +++ b/modules/bacula/manifests/storage.pp @@ -9,6 +9,13 @@ class bacula::storage inherits bacula { enable => true, hasstatus => true, } + systemd::override { 'bacula-sd': + content => @(EOT) + [Service] + Group=bacula + SupplementaryGroups=ssl-cert + | EOT + } exec { 'bacula-sd restart-when-idle': path => '/usr/bin:/usr/sbin:/bin:/sbin', @@ -66,5 +73,18 @@ class bacula::storage inherits bacula { ; } + package { 'python3-psycopg2': ensure => installed } + file { '/usr/local/bin/bacula-unlink-removed-volumes': + source => 'puppet:///modules/bacula/bacula-unlink-removed-volumes', + mode => '0555', + } + file { "/etc/cron.d/puppet-bacula-storage-stuff": ensure => absent, } + concat::fragment { 'dsa-puppet-stuff--bacula-storage': + target => '/etc/cron.d/dsa-puppet-stuff', + content => @(EOF) + @daily bacula chronic /usr/local/bin/bacula-unlink-removed-volumes -v + | EOF + } + Bacula::Storage_per_node<<| |>> }