Add git-test website

This serves static files out of afs, so we can test redirects from
git.openstack.org to opendev.

Change-Id: I5bdec079ca12074bb761862632d936306c713df4
This commit is contained in:
James E. Blair 2019-02-04 12:53:04 -08:00
parent 2a9136366a
commit 209e5e03e0
2 changed files with 32 additions and 0 deletions

View File

@ -504,6 +504,14 @@ node /^files\d*\.open.*\.org$/ {
require => Class['Openstack_project::Server'],
}
# Temporary for evaluating htaccess rules
::httpd::vhost { "git-test.openstack.org":
port => 80, # Is required despite not being used.
docroot => "/afs/openstack.org/project/git-test/www",
priority => '50',
template => 'openstack_project/git-test.vhost.erb',
}
openstack_project::website { 'docs.starlingx.io':
volume_name => 'starlingx.io',
aliases => [],

View File

@ -0,0 +1,24 @@
# ************************************
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName <%= @srvname %>
RewriteEngine on
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
AllowOverride None
# Allow mod_rewrite rules
AllowOverrideList Redirect RedirectMatch
ErrorDocument 404 /errorpage.html
</Directory>
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>