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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 351 - (hide annotations) (download)
Sun Nov 21 17:46:29 2010 UTC (13 years, 5 months ago) by blino
File size: 1624 byte(s)
split a iurtuser class, to be used on main node

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

  ViewVC Help
Powered by ViewVC 1.1.30