1 |
class buildsystem { |
2 |
|
3 |
class buildnode { |
4 |
include iurt |
5 |
} |
6 |
|
7 |
class iurt { |
8 |
|
9 |
$home_dir = "/home/buildbot/" |
10 |
$build_login = "buildbot" |
11 |
# build node common settings |
12 |
# we could have the following skip list to use less space: |
13 |
# '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/' |
14 |
$package_list = ['task-bs-cluster-chroot', 'iurt'] |
15 |
package { $package_list: |
16 |
ensure => installed; |
17 |
} |
18 |
|
19 |
file { "$home_dir/.iurt.cauldron.conf": |
20 |
ensure => present, |
21 |
owner => $build_login, |
22 |
group => $build_login, |
23 |
mode => 644, |
24 |
content => template("iurt/iurt.cauldron.conf") |
25 |
} |
26 |
|
27 |
group {"$build_login": |
28 |
ensure => present, |
29 |
} |
30 |
|
31 |
user {"$build_login": |
32 |
ensure => present, |
33 |
comment => "System user use to run build bots" |
34 |
managehome => true, |
35 |
shell => "/bin/bash", |
36 |
} |
37 |
} |
38 |
} |