From 72ab956e88494ac43ed4e319031cac0286c594e1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 25 Dec 2017 12:12:31 +0100 Subject: [PATCH] Move crontab bacula-storage into dsa-puppet-stuff --- modules/bacula/manifests/storage.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp index 7c274c1ce..d926e4e06 100644 --- a/modules/bacula/manifests/storage.pp +++ b/modules/bacula/manifests/storage.pp @@ -79,7 +79,13 @@ class bacula::storage inherits bacula { 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"; + 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<<| |>> -- 2.20.1