[Mageia-sysadm] [354] - create user/group with puppet, with the bin directory so the cron task doesn't fail

root at mageia.org root at mageia.org
Sun Nov 21 19:05:23 CET 2010


Revision: 354
Author:   misc
Date:     2010-11-21 19:05:23 +0100 (Sun, 21 Nov 2010)
Log Message:
-----------
- create user/group with puppet, with the bin directory so the cron task doesn't fail

Modified Paths:
--------------
    puppet/modules/mirror/manifests/init.pp

Modified: puppet/modules/mirror/manifests/init.pp
===================================================================
--- puppet/modules/mirror/manifests/init.pp	2010-11-21 17:47:29 UTC (rev 353)
+++ puppet/modules/mirror/manifests/init.pp	2010-11-21 18:05:23 UTC (rev 354)
@@ -9,6 +9,26 @@
         content => template("mirror/update_timestamp")
     }
 
+    file { "/home/mirror/bin/":
+        ensure => directory,
+        owner => mirror,
+        group => mirror,
+        mode => 755
+    }
+
+    group {"mirror":
+        ensure => present,
+    }
+
+    user {"mirror":
+        ensure => present,
+        comment => "System user use to run mirror scripts",
+        managehome => true,
+        gid => mirror,
+        shell => "/bin/bash",
+    }
+
+
     cron { mirror:
         user => mirror,
         hour => 10,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101121/238d4abf/attachment.html>


More information about the Mageia-sysadm mailing list