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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.2515  
changed lines
  Added in v.2533

  ViewVC Help
Powered by ViewVC 1.1.30