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:
parent
68936b4617
commit
c643bf8c89
@ -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',
|
||||
}
|
||||
}
|
||||
|
25
modules/openstack_project/templates/docs.vhost.erb
Normal file
25
modules/openstack_project/templates/docs.vhost.erb
Normal 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>
|
Loading…
Reference in New Issue
Block a user