From b4bd9d1597398fd8dd6db5403abee996449c804a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 25 Dec 2017 13:19:06 +0100 Subject: [PATCH] Move crontab static-mirror into dsa-puppet-stuff --- modules/roles/manifests/static_mirror.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/roles/manifests/static_mirror.pp b/modules/roles/manifests/static_mirror.pp index e7050fcfb..66c7f5214 100644 --- a/modules/roles/manifests/static_mirror.pp +++ b/modules/roles/manifests/static_mirror.pp @@ -22,7 +22,13 @@ class roles::static_mirror { } file { '/etc/cron.d/puppet-static-mirror': - content => "MAILTO=root\nPATH=/usr/local/bin:/usr/bin:/bin\n@reboot staticsync sleep 60; chronic static-mirror-run-all\n", + ensure => absent, + } + concat::fragment { 'dsa-puppet-stuff--static-mirror': + target => '/etc/cron.d/dsa-puppet-stuff', + content => @(EOF) + @reboot staticsync sleep 60; chronic static-mirror-run-all + | EOF } $onion_v4_addr = $::hostname ? { -- 2.20.1