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

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30