Update (c) year
[mirror/dsa-puppet.git] / modules / bacula / manifests / storage.pp
index 2ac7e7d..1e538bf 100644 (file)
@@ -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,6 +73,18 @@ class bacula::storage inherits bacula {
                ;
        }
 
-       Bacula::Storage-per-Node<<| |>>
+       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<<| |>>
 }