diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-21 17:46:29 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-21 17:46:29 +0000 |
commit | 31d71e9a09d07a18cdececba2235c1953aa333ea (patch) | |
tree | e36710c6a82ef86ec990872428ae6c6c88875511 /modules/buildsystem | |
parent | d12d87c43de00029107958360ec6628aa38da1ab (diff) | |
download | puppet-31d71e9a09d07a18cdececba2235c1953aa333ea.tar puppet-31d71e9a09d07a18cdececba2235c1953aa333ea.tar.gz puppet-31d71e9a09d07a18cdececba2235c1953aa333ea.tar.bz2 puppet-31d71e9a09d07a18cdececba2235c1953aa333ea.tar.xz puppet-31d71e9a09d07a18cdececba2235c1953aa333ea.zip |
split a iurtuser class, to be used on main node
Diffstat (limited to 'modules/buildsystem')
-rw-r--r-- | modules/buildsystem/manifests/init.pp | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp index c3d88ae1..b2427859 100644 --- a/modules/buildsystem/manifests/init.pp +++ b/modules/buildsystem/manifests/init.pp @@ -26,11 +26,26 @@ class buildsystem { } + $build_login = "iurt" + $build_home_dir = "/home/iurt/" + + class iurtuser { + group {"$build_login": + ensure => present, + } + + user {"$build_login": + ensure => present, + comment => "System user use to run build bots", + managehome => true, + gid => $build_login, + shell => "/bin/bash", + } + } + class iurt { include sudo - $home_dir = "/home/iurt/" - $build_login = "iurt" # build node common settings # we could have the following skip list to use less space: # '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/' @@ -39,7 +54,7 @@ class buildsystem { ensure => installed; } - file { "$home_dir/.iurt.cauldron.conf": + file { "$build_home_dir/.iurt.cauldron.conf": ensure => present, owner => $build_login, group => $build_login, @@ -54,17 +69,5 @@ class buildsystem { mode => 440, content => template("buildsystem/sudoers.iurt") } - - group {"$build_login": - ensure => present, - } - - user {"$build_login": - ensure => present, - comment => "System user use to run build bots", - managehome => true, - gid => $build_login, - shell => "/bin/bash", - } } } |