Update (c) year
[mirror/dsa-puppet.git] / modules / bacula / manifests / storage.pp
index 35dffb2..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',
@@ -71,8 +78,12 @@ class bacula::storage inherits bacula {
                source  => 'puppet:///modules/bacula/bacula-unlink-removed-volumes',
                mode    => '0555',
        }
-       file { "/etc/cron.d/puppet-bacula-storage-stuff":
-               content => "MAILTO=root\n@daily bacula chronic /usr/local/bin/bacula-unlink-removed-volumes -v\n";
+       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<<| |>>