From: Peter Palfrader Date: Mon, 25 Dec 2017 12:19:06 +0000 (+0100) Subject: Move crontab static-mirror into dsa-puppet-stuff X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=b4bd9d1597398fd8dd6db5403abee996449c804a;p=mirror%2Fdsa-puppet.git Move crontab static-mirror into dsa-puppet-stuff --- 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 ? {