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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2533 - (show annotations) (download)
Fri Mar 16 22:54:11 2012 UTC (12 years, 1 month ago) by misc
File size: 1143 byte(s)
reindent, and fix syntax error
1 class buildsystem::binrepo {
2 include buildsystem::base
3 include sudo
4 $login = 'binrepo'
5 $homedir = "/var/lib/$login"
6 $repodir = "$homedir/data"
7
8 $uploadinfosdir = "$homedir/infos"
9 $uploadbinpath = '/usr/local/bin/upload-bin'
10 $uploadmail_from = "root@$::domain"
11 $uploadmail_to = "packages-commits@ml.$::domain"
12
13 # used in templates
14 $packagers_committers_group = $buildsystem::base::packagers_committers_group
15
16 user { $login:
17 comment => 'Binary files repository',
18 home => $homedir,
19 }
20
21 file { [$repodir, $uploadinfosdir]:
22 ensure => directory,
23 owner => $login,
24 }
25
26 local_script {
27 'upload-bin':
28 content => template('buildsystem/binrepo/upload-bin');
29 'wrapper.upload-bin':
30 content => template('buildsystem/binrepo/wrapper.upload-bin');
31 }
32
33 sudo::sudoers_config { 'binrepo':
34 content => template('buildsystem/binrepo/sudoers.binrepo')
35 }
36
37 apache::vhost_base { "binrepo.$::domain":
38 location => $repodir,
39 content => template('buildsystem/binrepo/vhost_binrepo.conf'),
40 }
41 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30