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:
parent
15b97e88d2
commit
a2687e42b4
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user