]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
apt::reboot_required_notify: take into account the random sleep time.
authorintrigeri <intrigeri@boum.org>
Mon, 13 Dec 2010 09:08:47 +0000 (10:08 +0100)
committerintrigeri <intrigeri@boum.org>
Mon, 13 Dec 2010 09:08:47 +0000 (10:08 +0100)
manifests/reboot_required_notify.pp

index 3c6db795144b22615f7f12f55292037bc88adb9e..3603aa20d5def6ae00c3756696f9b232b87e3fee 100644 (file)
@@ -8,11 +8,12 @@ class apt::reboot_required_notify {
   }
 
   # cron-apt defaults to run every night at 4 o'clock
+  # plus some random time <1h.
   # so we check if a reboot is required a bit later.
   cron { 'apt_reboot_required_notify':
     command => 'if [ -f /var/run/reboot-required ]; then echo "Reboot required\n" ; cat /var/run/reboot-required.pkgs ; fi',
     user    => root,
-    hour    => 4,
+    hour    => 5,
     minute  => 20,
     require => Package['update-notifier-common'],
   }