]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Add a reboot cronjob to remove no-daemon-please
authorPeter Palfrader <peter@palfrader.org>
Fri, 23 Oct 2009 17:13:58 +0000 (19:13 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 23 Oct 2009 17:13:58 +0000 (19:13 +0200)
modules/buildd/files/cron.d-dsa-buildd [new file with mode: 0644]
modules/buildd/manifests/init.pp

diff --git a/modules/buildd/files/cron.d-dsa-buildd b/modules/buildd/files/cron.d-dsa-buildd
new file mode 100644 (file)
index 0000000..fee216a
--- /dev/null
@@ -0,0 +1 @@
+@reboot buildd [ -f ~buildd/NO-DAEMON-PLEASE ] && grep 'delete-on-boot' ~buildd/NO-DAEMON-PLEASE > /dev/null && rm -f ~buildd/NO-DAEMON-PLEASE
index 6c8a729da75839df12346147236e2ca983a18eb8..7ddd769c75fdfbbbbcaf172cae6fa3e07e15ec3a 100644 (file)
@@ -23,5 +23,9 @@ class buildd {
             source  => "puppet:///buildd/mount-defaults",
             require => Package["sbuild"]
             ;
+      "/etc/cron.d/dsa-buildd":
+            source => "puppet:///buildd/cron.d-dsa-buildd",
+            require => Package["cron"]
+            ;
    }
 }