/[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 2199 - (hide annotations) (download)
Sun Jan 8 20:24:58 2012 UTC (10 years ago) by misc
File size: 1272 byte(s)
add defaults values for user created by puppet, to remove duplication
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     comment => "Binary files repository",
16     home => "$binrepo_homedir",
17     }
18    
19     file { [$binrepodir, $uploadinfosdir]:
20     ensure => directory,
21     owner => $binrepo_login,
22     }
23    
24     local_script {
25     "upload-bin": content => template('buildsystem/binrepo/upload-bin');
26     "wrapper.upload-bin": content => template('buildsystem/binrepo/wrapper.upload-bin');
27     }
28    
29     sudo::sudoers_config { "binrepo":
30     content => template("buildsystem/binrepo/sudoers.binrepo")
31     }
32    
33     apache::vhost_base { "binrepo.$domain":
34     location => $binrepodir,
35     content => template("buildsystem/binrepo/vhost_binrepo.conf"),
36     }
37     }
38     }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28