aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/buildsystem/manifests/init.pp33
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",
- }
}
}