/[adm]/puppet/modules/buildsystem/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/buildsystem/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 383 - (show annotations) (download)
Mon Nov 22 07:29:23 2010 UTC (13 years, 5 months ago) by blino
File size: 2170 byte(s)
ensure home is a directory

1 class buildsystem {
2
3 class base {
4 $build_login = "iurt"
5 $build_home_dir = "/home/iurt"
6
7 include ssh::auth
8 ssh::auth::key { $build_login: } # declare a key for build bot: RSA, 2048 bits
9 }
10
11 class mainnode inherits base {
12 include iurtuser
13 ssh::auth::server { $build_login: }
14
15 package { "task-bs-cluster-main":
16 ensure => "installed"
17 }
18 }
19
20 class buildnode inherits base {
21 include iurt
22 }
23
24 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 class iurtuser {
41 group {"$build_login":
42 ensure => present,
43 }
44
45 user {"$build_login":
46 ensure => present,
47 comment => "System user used to run build bots",
48 managehome => true,
49 gid => $build_login,
50 shell => "/bin/bash",
51 }
52
53 file { $build_home_dir:
54 ensure => "directory",
55 }
56
57 file { "$build_home_dir/.ssh":
58 ensure => "directory",
59 mode => 600,
60 owner => $build_login,
61 group => $build_login,
62 }
63 }
64
65 class iurt {
66 include sudo
67 include iurtuser
68 ssh::auth::client { $build_login: }
69
70 # build node common settings
71 # we could have the following skip list to use less space:
72 # '/(drakx-installer-binaries|drakx-installer-advertising|gfxboot|drakx-installer-stage2|mandriva-theme)/'
73 $package_list = ['task-bs-cluster-chroot', 'iurt']
74 package { $package_list:
75 ensure => installed;
76 }
77
78 file { "$build_home_dir/.iurt.cauldron.conf":
79 ensure => present,
80 owner => $build_login,
81 group => $build_login,
82 mode => 644,
83 content => template("buildsystem/iurt.cauldron.conf")
84 }
85
86 file { "/etc/sudoers.d/iurt":
87 ensure => present,
88 owner => root,
89 group => root,
90 mode => 440,
91 content => template("buildsystem/sudoers.iurt")
92 }
93 }
94 }

  ViewVC Help
Powered by ViewVC 1.1.30