/[adm]/puppet/modules/buildsystem/templates/vhost_repository.conf
ViewVC logotype

Annotation of /puppet/modules/buildsystem/templates/vhost_repository.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3219 - (hide annotations) (download)
Fri May 31 09:22:33 2013 UTC (10 years, 10 months ago) by boklm
File size: 1581 byte(s)
buildsystem::distros: add 'no_mirror' option

For distributions that are not mirrored (like infra_*).
1 boklm 3147 <%-
2 boklm 2925 mirror_root = scope.lookupvar('buildsystem::var::repository::mirror_root')
3 boklm 3147 mirror_reporoot = scope.lookupvar('buildsystem::var::repository::mirror_reporoot')
4     bootstrap_reporoot = scope.lookupvar('buildsystem::var::repository::bootstrap_reporoot')
5 boklm 3219 distribdir = scope.lookupvar('buildsystem::var::repository::distribdir')
6 boklm 3147 distros = scope.lookupvar('buildsystem::var::distros::distros')
7     -%>
8 blino 403 <VirtualHost *:80>
9 boklm 3144 ServerName <%= scope.lookupvar('buildsystem::var::repository::hostname') %>
10 blino 1398 DocumentRoot <%= mirror_root %>
11 boklm 3147 <%-
12 boklm 3149 distros.keys.sort.each{|distroname|
13     distro = distros[distroname]
14 boklm 3147 allow_from = distro['repo_allow_from'] != nil ? distro['repo_allow_from'] : [ 'all' ]
15     %>
16     Alias /bootstrap/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/"
17 misc 2438
18 boklm 3219 <%- if distro['no_mirror'] -%>
19     Alias /<%= distribdir %>/<%= distroname %>/ "<%= bootstrap_reporoot %>/<%= distroname %>/"
20     <%- end -%>
21    
22 boklm 3147 <Directory <%= bootstrap_reporoot %>/<%= distroname %>>
23 misc 2437 Header append Cache-Control "public, must-revalidate"
24 pterjan 2410 Order deny,allow
25 boklm 3147 <%-
26     for allow in allow_from do
27     -%>
28     Allow from <%= allow %>
29     <%-
30     end
31     -%>
32 pterjan 2410 Options Indexes FollowSymLinks
33     </Directory>
34 misc 2438
35 boklm 3147 <Directory <%= mirror_reporoot %>/<%= distroname %>>
36 tmb 2824 Header append Cache-Control "public, must-revalidate"
37     Order deny,allow
38 boklm 3147 Deny from all
39     <%-
40     for allow in allow_from do
41     -%>
42     Allow from <%= allow %>
43     <%-
44     end
45     -%>
46 tmb 2824 Options Indexes FollowSymLinks
47     </Directory>
48 boklm 3147 <%-
49     }
50     -%>
51 blino 403 </VirtualHost>

  ViewVC Help
Powered by ViewVC 1.1.30