From ebdad53512ac5e5356c072e8819631ef03893e9f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 31 May 2013 09:22:33 +0000 Subject: buildsystem::distros: add 'no_mirror' option For distributions that are not mirrored (like infra_*). --- modules/buildsystem/templates/vhost_repository.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/buildsystem/templates') diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf index 6b5b67e5..39c4c689 100644 --- a/modules/buildsystem/templates/vhost_repository.conf +++ b/modules/buildsystem/templates/vhost_repository.conf @@ -2,6 +2,7 @@ mirror_root = scope.lookupvar('buildsystem::var::repository::mirror_root') mirror_reporoot = scope.lookupvar('buildsystem::var::repository::mirror_reporoot') bootstrap_reporoot = scope.lookupvar('buildsystem::var::repository::bootstrap_reporoot') +distribdir = scope.lookupvar('buildsystem::var::repository::distribdir') distros = scope.lookupvar('buildsystem::var::distros::distros') -%> @@ -14,6 +15,10 @@ distros = scope.lookupvar('buildsystem::var::distros::distros') %> Alias /bootstrap/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/" +<%- if distro['no_mirror'] -%> + Alias /<%= distribdir %>/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/" +<%- end -%> + /<%= distroname %>> Header append Cache-Control "public, must-revalidate" Order deny,allow -- cgit v1.2.1