puppet-dashboard/templates/puppet-dashboard-passenger-vhost.erb
Gary Larizza c657fa29f9 Add dashboard::passenger subclass
This commit adds the subclass which manages the ability 
for the puppet-dashboard to use Passenger. It requires
the apache::vhost defined type and a VirtualHost template.
2011-07-08 09:55:38 -07:00

35 lines
840 B
Plaintext

Listen <%= 8080 %>
<VirtualHost *:<%= dashboard_port %>>
ServerName <%= name %>
DocumentRoot <%= docroot %>
RailsBaseURI <%= rails_base_uri %>
<Directory <%= docroot %>>
Options None
AllowOverride AuthConfig
Order allow,deny
allow from all
</Directory>
# <Location "/">
# Order allow,deny
# Allow from <%= ipaddress %>
# Satisfy any
# AuthName "Puppet Dashboard"
# AuthType Basic
# AuthUserFile /etc/apache2/htpasswd
# require valid-user
# AllowOverride AuthConfig
# </Location>
<% case operatingsystem
when 'Debian', 'Ubuntu'
apachename = 'apache2'
else
apachename = 'httpd'
end -%>
ErrorLog /var/log/<%= apachename %>/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/<%= apachename %>/<%= name %>_access.log combined
ServerSignature On
</VirtualHost>