#
# This file autogenerated by Puppet
# Do not edit, changes will be overwritten
#
<%
if @memorysize_mb.to_i < 1200 or @processorcount.to_i <= 3
wsgi_daemon_processes = 3
wsgi_daemon_threads = 10
else
wsgi_daemon_processes = @processorcount
wsgi_daemon_threads = 15
end
if @osfamily == 'RedHat' %>
WSGIDaemonProcess dashboard processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static
SetOutputFilter DEFLATE
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
Order allow,deny
Allow from all
ExpiresActive On
ExpiresDefault "access 6 month"
SetOutputFilter DEFLATE
Order allow,deny
Allow from all
<%
end
if @osfamily == 'Debian' %>
WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=horizon group=horizon processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
WSGIProcessGroup horizon
Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
Order allow,deny
Allow from all
<% end %>