diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-21 18:05:23 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-21 18:05:23 +0000 |
commit | de272a4f7063a793f7aaef212ceb3e9f7f7acc00 (patch) | |
tree | 0923532faace981f0d97d70d28ed74057ffc923b /modules/mirror | |
parent | ae69c33dc02b1b660d5a2a5b282f373eb84d7565 (diff) | |
download | puppet-de272a4f7063a793f7aaef212ceb3e9f7f7acc00.tar puppet-de272a4f7063a793f7aaef212ceb3e9f7f7acc00.tar.gz puppet-de272a4f7063a793f7aaef212ceb3e9f7f7acc00.tar.bz2 puppet-de272a4f7063a793f7aaef212ceb3e9f7f7acc00.tar.xz puppet-de272a4f7063a793f7aaef212ceb3e9f7f7acc00.zip |
- create user/group with puppet, with the bin directory so the cron task doesn't fail
Diffstat (limited to 'modules/mirror')
-rw-r--r-- | modules/mirror/manifests/init.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/mirror/manifests/init.pp b/modules/mirror/manifests/init.pp index 5d6bca4b..512b0463 100644 --- a/modules/mirror/manifests/init.pp +++ b/modules/mirror/manifests/init.pp @@ -9,6 +9,26 @@ class mirror { 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, |