Add docs.o.o vhost for files.o.o

Now that we are publishing docs to AFS, add a new vhost for apache.

Change-Id: I8bc1bfefc5190f3c607905bbdc91c1cf2e47c83b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-30 14:34:55 -04:00
parent 68936b4617
commit c643bf8c89
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 35 additions and 0 deletions

View File

@ -49,4 +49,14 @@ class openstack_project::files (
'create 640 root adm',
],
}
###########################################################
# docs.openstack.org
::httpd::vhost { 'docs.openstack.org':
port => 80,
docroot => "${afs_root}docs",
priority => '50',
template => 'openstack_project/docs.vhost.erb',
}
}

View File

@ -0,0 +1,25 @@
# ************************************
# Managed by Puppet
# ************************************
NameVirtualHost <%= @vhost_name %>:<%= @port %>
<VirtualHost <%= @vhost_name %>:<%= @port %>>
ServerName <%= @srvname %>
<% if @serveraliases.is_a? Array -%>
<% @serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
<% elsif @serveraliases != nil -%>
<%= " ServerAlias #{@serveraliases}" -%>
<% end -%>
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
</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>