[Mageia-sysadm] [72] - setup a cronjob for urpmi_update ( your wish is my command, blino )

root at mageia.org root at mageia.org
Mon Nov 1 23:50:42 CET 2010


Revision: 72
Author:   misc
Date:     2010-11-01 23:50:42 +0100 (Mon, 01 Nov 2010)
Log Message:
-----------
- setup a cronjob for urpmi_update ( your wish is my command, blino ) 

Modified Paths:
--------------
    puppet/manifests/common.pp

Modified: puppet/manifests/common.pp
===================================================================
--- puppet/manifests/common.pp	2010-11-01 22:04:53 UTC (rev 71)
+++ puppet/manifests/common.pp	2010-11-01 22:50:42 UTC (rev 72)
@@ -62,6 +62,16 @@
 
 }
 
+class urpmi_update {
+    cron { urpmi_update:
+        user => root,
+        hour => 3,
+        minute => 14,
+        command => "urpmi.update -a",
+    }
+
+}
+
 class default_mageia_server {
     include timezone
 
@@ -72,9 +82,7 @@
     include base_packages
     include ntp
     include postfix::simple_relay
-
-# TODO:
-# - run urpmi.update -a in a cron job
+    include urpmi_update
 }
 
 class default_mageia_buildnode {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101101/6533944e/attachment-0001.html>


More information about the Mageia-sysadm mailing list