Move crontab static-mirror into dsa-puppet-stuff
authorPeter Palfrader <peter@palfrader.org>
Mon, 25 Dec 2017 12:19:06 +0000 (13:19 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 25 Dec 2017 12:19:06 +0000 (13:19 +0100)
modules/roles/manifests/static_mirror.pp

index e7050fc..66c7f52 100644 (file)
@@ -22,7 +22,13 @@ class roles::static_mirror {
        }
 
        file { '/etc/cron.d/puppet-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 ? {
        }
 
        $onion_v4_addr = $::hostname ? {