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