aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/binrepo.pp
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-22 22:16:58 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-22 22:16:58 +0000
commit77a70999df1bd4e67aadb02bd673449beae124b8 (patch)
treecf0fae1fc952ec3e2958e32c7441655f02848c17 /modules/buildsystem/manifests/binrepo.pp
parent9d7449fb7975570ab39f1ed64615188cbc8a4226 (diff)
downloadpuppet-77a70999df1bd4e67aadb02bd673449beae124b8.tar
puppet-77a70999df1bd4e67aadb02bd673449beae124b8.tar.gz
puppet-77a70999df1bd4e67aadb02bd673449beae124b8.tar.bz2
puppet-77a70999df1bd4e67aadb02bd673449beae124b8.tar.xz
puppet-77a70999df1bd4e67aadb02bd673449beae124b8.zip
buildsystem: move binrepo config to buildsystem::var::binrepo
Diffstat (limited to 'modules/buildsystem/manifests/binrepo.pp')
-rw-r--r--modules/buildsystem/manifests/binrepo.pp21
1 files changed, 7 insertions, 14 deletions
diff --git a/modules/buildsystem/manifests/binrepo.pp b/modules/buildsystem/manifests/binrepo.pp
index 037352a0..9c81530d 100644
--- a/modules/buildsystem/manifests/binrepo.pp
+++ b/modules/buildsystem/manifests/binrepo.pp
@@ -1,26 +1,19 @@
class buildsystem::binrepo {
+ include buildsystem::var::binrepo
include buildsystem::base
include sudo
- $login = 'binrepo'
- $homedir = "/var/lib/$login"
- $repodir = "$homedir/data"
-
- $uploadinfosdir = "$homedir/infos"
- $uploadbinpath = '/usr/local/bin/upload-bin'
- $uploadmail_from = "root@$::domain"
- $uploadmail_to = "packages-commits@ml.$::domain"
# used in templates
$packagers_committers_group = $buildsystem::base::packagers_committers_group
- user { $login:
+ user { $buildsystem::var::binrepo::login:
comment => 'Binary files repository',
- home => $homedir,
+ home => $buildsystem::var::binrepo::homedir,
}
- file { [$repodir, $uploadinfosdir]:
+ file { [$buildsystem::var::binrepo::repodir, $buildsystem::var::binrepo::uploadinfosdir]:
ensure => directory,
- owner => $login,
+ owner => $buildsystem::var::binrepo::login,
}
mga-common::local_script {
@@ -34,8 +27,8 @@ class buildsystem::binrepo {
content => template('buildsystem/binrepo/sudoers.binrepo')
}
- apache::vhost::base { "binrepo.$::domain":
- location => $repodir,
+ apache::vhost::base { "binrepo.${::domain}":
+ location => $buildsystem::var::binrepo::repodir,
content => template('buildsystem/binrepo/vhost_binrepo.conf'),
}
}