1 |
misc |
213 |
class buildsystem { |
2 |
dmorgan |
86 |
|
3 |
boklm |
356 |
class base { |
4 |
|
|
$build_login = "iurt" |
5 |
|
|
$build_home_dir = "/home/iurt/" |
6 |
blino |
366 |
|
7 |
|
|
include ssh::auth |
8 |
|
|
ssh::auth::key { $build_login: } # declare a key for build bot: RSA, 2048 bits |
9 |
boklm |
356 |
} |
10 |
boklm |
355 |
|
11 |
boklm |
356 |
class mainnode inherits base { |
12 |
blino |
381 |
include iurtuser |
13 |
blino |
366 |
ssh::auth::server { $build_login: } |
14 |
blino |
353 |
|
15 |
blino |
350 |
package { "task-bs-cluster-main": |
16 |
|
|
ensure => "installed" |
17 |
|
|
} |
18 |
|
|
} |
19 |
|
|
|
20 |
boklm |
356 |
class buildnode inherits base { |
21 |
misc |
213 |
include iurt |
22 |
dmorgan |
86 |
} |
23 |
|
|
|
24 |
misc |
265 |
class scheduler { |
25 |
|
|
# ulri |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
class dispatcher { |
29 |
|
|
# emi |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
class repsys { |
33 |
|
|
package { 'repsys': |
34 |
|
|
|
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
} |
39 |
|
|
|
40 |
blino |
351 |
class iurtuser { |
41 |
|
|
group {"$build_login": |
42 |
|
|
ensure => present, |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
user {"$build_login": |
46 |
|
|
ensure => present, |
47 |
boklm |
359 |
comment => "System user used to run build bots", |
48 |
blino |
351 |
managehome => true, |
49 |
|
|
gid => $build_login, |
50 |
|
|
shell => "/bin/bash", |
51 |
|
|
} |
52 |
blino |
372 |
|
53 |
blino |
373 |
file { "$build_home_dir/.ssh": |
54 |
blino |
372 |
ensure => "directory", |
55 |
|
|
mode => 600, |
56 |
|
|
owner => $build_login, |
57 |
|
|
group => $build_login, |
58 |
|
|
} |
59 |
blino |
351 |
} |
60 |
|
|
|
61 |
misc |
213 |
class iurt { |
62 |
boklm |
216 |
include sudo |
63 |
blino |
381 |
include iurtuser |
64 |
blino |
366 |
ssh::auth::client { $build_login: } |
65 |
misc |
213 |
|
66 |
|
|
# build node common settings |
67 |
|
|
# we could have the following skip list to use less space: |
68 |
|
|
# '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/' |
69 |
|
|
$package_list = ['task-bs-cluster-chroot', 'iurt'] |
70 |
|
|
package { $package_list: |
71 |
|
|
ensure => installed; |
72 |
|
|
} |
73 |
|
|
|
74 |
blino |
351 |
file { "$build_home_dir/.iurt.cauldron.conf": |
75 |
misc |
213 |
ensure => present, |
76 |
|
|
owner => $build_login, |
77 |
|
|
group => $build_login, |
78 |
|
|
mode => 644, |
79 |
boklm |
218 |
content => template("buildsystem/iurt.cauldron.conf") |
80 |
misc |
213 |
} |
81 |
|
|
|
82 |
boklm |
216 |
file { "/etc/sudoers.d/iurt": |
83 |
|
|
ensure => present, |
84 |
|
|
owner => root, |
85 |
|
|
group => root, |
86 |
boklm |
219 |
mode => 440, |
87 |
boklm |
218 |
content => template("buildsystem/sudoers.iurt") |
88 |
boklm |
216 |
} |
89 |
dmorgan |
86 |
} |
90 |
|
|
} |