X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fstorage.pp;h=9f72e0e0d1065af5d66dd49ea4b3ce45125d271e;hb=37f6673b1fe6ceac1a1cd600d5e39211e9a4d187;hp=35dffb2291539443e5c535b97e7c26666d71f377;hpb=8188edfe7da3738e5bdc2aff9d9adce58299b10d;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp index 35dffb229..9f72e0e0d 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, } + dsa_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<<| |>>