1 |
class buildsystem::binrepo { |
2 |
include buildsystem::var::binrepo |
3 |
include buildsystem::var::groups |
4 |
include sudo |
5 |
|
6 |
# upload-bin script use the mailx command provided by nail |
7 |
package { 'nail': |
8 |
ensure => installed, |
9 |
} |
10 |
|
11 |
user { $buildsystem::var::binrepo::login: |
12 |
comment => 'Binary files repository', |
13 |
home => $buildsystem::var::binrepo::homedir, |
14 |
} |
15 |
|
16 |
file { [$buildsystem::var::binrepo::repodir, $buildsystem::var::binrepo::uploadinfosdir]: |
17 |
ensure => directory, |
18 |
owner => $buildsystem::var::binrepo::login, |
19 |
} |
20 |
|
21 |
mga_common::local_script { |
22 |
'upload-bin': |
23 |
content => template('buildsystem/binrepo/upload-bin'); |
24 |
'wrapper.upload-bin': |
25 |
content => template('buildsystem/binrepo/wrapper.upload-bin'); |
26 |
} |
27 |
|
28 |
sudo::sudoers_config { 'binrepo': |
29 |
content => template('buildsystem/binrepo/sudoers.binrepo') |
30 |
} |
31 |
|
32 |
apache::vhost::base { $buildsystem::var::binrepo::hostname: |
33 |
location => $buildsystem::var::binrepo::repodir, |
34 |
content => template('buildsystem/binrepo/vhost_binrepo.conf'), |
35 |
} |
36 |
} |