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:
parent
2a9136366a
commit
209e5e03e0
@ -504,6 +504,14 @@ node /^files\d*\.open.*\.org$/ {
|
|||||||
require => Class['Openstack_project::Server'],
|
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':
|
openstack_project::website { 'docs.starlingx.io':
|
||||||
volume_name => 'starlingx.io',
|
volume_name => 'starlingx.io',
|
||||||
aliases => [],
|
aliases => [],
|
||||||
|
24
modules/openstack_project/templates/git-test.vhost.erb
Normal file
24
modules/openstack_project/templates/git-test.vhost.erb
Normal 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>
|
Loading…
Reference in New Issue
Block a user