Set up redirects to preserve governance.o.o links

Before switching the governance.o.o docroot to neutral content
from openstack/governance-website, set up some redirects to
preserve old links to TC reference documents and resolutions.

This is steps 7 and 8 in the plan to switch to a neutral
governance website, as described in [1].

[1]
http://specs.openstack.org/openstack-infra/infra-specs/specs/neutral-governance-website.html

Change-Id: I12a60816b9fcbe8c467a7bc3219149e6a053ffa8
This commit is contained in:
Thierry Carrez 2016-11-30 11:09:29 +01:00
parent 15b97e88d2
commit a2687e42b4
2 changed files with 10 additions and 0 deletions

View File

@ -267,6 +267,12 @@ class openstack_project::static (
'/tc/' => '/srv/static/tc/',
'/uc/' => '/srv/static/uc/',
}
# Extra redirects needed for vhost template:
$governance_redirects = {
'/goals/' => '/tc/goals/',
'/reference/' => '/tc/reference/',
'/resolutions/' => '/tc/resolutions/',
}
# One of these must also be the docroot
$governance_directories = [
'/srv/static/election',

View File

@ -60,6 +60,10 @@
<% scope.lookupvar('openstack_project::static::governance_aliases').each do |a, d| -%>
Alias "<%= a %>" "<%= d %>"
<% end -%>
# Set up redirects
<% scope.lookupvar('openstack_project::static::governance_redirects').each do |a, d| -%>
Redirect "<%= a %>" "<%= d %>"
<% end -%>
<% scope.lookupvar('openstack_project::static::governance_directories').each do |dirname| -%>
<Directory <%= dirname %>>
Options Indexes FollowSymLinks MultiViews