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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2191 - (hide annotations) (download)
Sun Jan 8 17:39:08 2012 UTC (12 years, 3 months ago) by misc
Original Path: puppet/modules/buildsystem/manifests/binrepos.pp
File size: 1369 byte(s)
split binrepos in its own file
1 misc 2191 class buildsystem {
2     class binrepo inherits base {
3     include sudo
4     $binrepo_login = "binrepo"
5     $binrepo_homedir = "/var/lib/$binrepo_login"
6     $binrepodir = "$binrepo_homedir/data"
7     $uploadinfosdir = "$binrepo_homedir/infos"
8     $uploadbinpath = '/usr/local/bin/upload-bin'
9     $uploadmail_from = "root@$domain"
10     $uploadmail_to = "packages-commits@ml.$domain"
11    
12     $packagers_committers_group = $buildsystem::base::packagers_committers_group
13    
14     user {"$binrepo_login":
15     ensure => present,
16     comment => "Binary files repository",
17     managehome => true,
18     shell => "/bin/bash",
19     home => "$binrepo_homedir",
20     }
21    
22     file { [$binrepodir, $uploadinfosdir]:
23     ensure => directory,
24     owner => $binrepo_login,
25     }
26    
27     local_script {
28     "upload-bin": content => template('buildsystem/binrepo/upload-bin');
29     "wrapper.upload-bin": content => template('buildsystem/binrepo/wrapper.upload-bin');
30     }
31    
32     sudo::sudoers_config { "binrepo":
33     content => template("buildsystem/binrepo/sudoers.binrepo")
34     }
35    
36     apache::vhost_base { "binrepo.$domain":
37     location => $binrepodir,
38     content => template("buildsystem/binrepo/vhost_binrepo.conf"),
39     }
40     }
41     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30