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

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,