Commit Graph

9 Commits

Author SHA1 Message Date
Colleen Murphy
b54344129d Fix template variables
We almost never define $serveraliases which means that it's always going
to be empty. Puppet 4 is more strict about types and converting undef to
nil so this change makes sure that an undefined variable doesn't
accidentally get evaluated as existing and cause an invalid apache
config.

In the places where we're already just comparing @serveraliases to nil,
just leave them alone. Nil should be the expected value for undefined
variables going forward in puppet 4, so as long as it's working in
puppet 3 let's keep it.

Change-Id: I68ea8e1fde5d422f821453ff618d827e3cbe1c43
2018-07-18 09:32:36 +02:00
Jeremy Stanley
7a1fb8ad1f Allow governance site content to include redirects
Update the overrides allowed for governance.openstack.org so that
the list of governance directories can perform Redirect or
RedirectMatch with .htaccess files instead of needing to involve
system-config reviewers when they want to move content between URLs
within the site.

Change-Id: Ifb70d119588ce8973d0f86fe555f95853259ba06
2018-01-16 16:23:22 +00:00
Jeremy Stanley
c95d0e59e0 Redirect to HTTPS for governance.openstack.org
Unilaterally redirect any plain HTTP requests for the
governance.openstack.org site to HTTPS by making the
static-governance vhost template's *:80 VirtualHost block match the
one we use for our generic https-redirect vhost template.

Change-Id: I2f63314f505d2fa03764b9b3cfc53d1070372e7c
2016-12-13 18:06:25 +01:00
Jenkins
12a99645a0 Merge "Set Cache-Control to no-cache for badges" 2016-12-13 14:03:04 +00:00
Flavio Percoco
84ebdebe00 Set Cache-Control to no-cache for badges
Some services might cache badges for a very long time, which may no
reflect the latest changes in the governance repo. Set Cache-Control to
no-cache to instruct these services to not cache badges ever.

Change-Id: I535107c49d5c89b9e09b440f7aac139de213f796
2016-12-08 10:18:07 +01:00
Thierry Carrez
a2687e42b4 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
2016-11-30 11:09:29 +01:00
Flavio Percoco
19b82679fe Add rewrite rules for badges in the vhost config
Instead of relying on a .htaccess file in the governance repo, this sets
the ErrorDocument rule in the vhost configs directly, only for the
`/badges` subdir.

Change-Id: Icd0568ec67f12b7349765d2aefa348661dac880a
2016-11-18 17:48:40 +01:00
Flavio Percoco
5e22e65f47 Set AllowOverride to FileInfo for g.o.o
In order for the `.htaccess` file to be read and processed in the g.o.o
site, we need to set AllowOverride to something else than None. FileInfo
should be enough for now as the only rule we're overriding is the
ErrorDocument[0].

This rule is needed to redirect missing badges to the "unofficial
project" one.

[0] http://git.openstack.org/cgit/openstack/governance/tree/doc/source/badges/.htaccess

Change-Id: Ie078e271732563e1a18bb0837cf9a40c6e5fcfa7
2016-11-17 11:27:21 +01:00
Joshua Hesketh
4ebafcde34 Add election alias to governance.openstack.org
Add an alias for /election/ to go to /srv/static/election where
the election repo will be published to.

This is a reworked resubmission of
Ie5e783c65396e9fb74f3d739e775e51a948652fe which was reverted in
I808e654a6fb77440e7aecbde4456ddc720fe0d9a .

Change-Id: I1a8e179d26e57247322fe3ed604e838722d43334
Partially-Implements: spec publish-election-repo
Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
2016-07-03 15:06:33 +00:00