/[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 216 - (show annotations) (download)
Tue Nov 9 22:57:33 2010 UTC (11 years, 2 months ago) by boklm
File size: 1275 byte(s)
add sudoers rule for iurt
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("iurt/iurt.cauldron.conf")
26 }
27
28 file { "/etc/sudoers.d/iurt":
29 ensure => present,
30 owner => root,
31 group => root,
32 mode => 600,
33 content => template("iurt/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 }

  ViewVC Help
Powered by ViewVC 1.1.28