Project

General

Profile

« Previous | Next » 

Revision 8c974670

Added by Ohad Levy over 12 years ago

restructure foreman module

View differences:

templates/foreman-vhost.conf.erb
<VirtualHost <%= ipaddress %>:80>
ServerName <%= fqdn %>
ServerAlias foreman
DocumentRoot <%= scope.lookupvar 'foreman::foreman_dir' %>/public
<% if has_variable?("lsbdistid") and lsbdistid == 'Ubuntu' || lsbdistid == 'Debian' %> PassengerAppRoot <%= scope.lookupvar 'foreman::foreman_dir' %><% end %>
DocumentRoot <%= scope.lookupvar 'foreman::params::app_root' %>/public
PassengerAppRoot <%= scope.lookupvar 'foreman::params::app_root' %>
RailsAutoDetect On
AddDefaultCharset UTF-8
......
ServerAlias foreman
RailsAutoDetect On
DocumentRoot <%= scope.lookupvar 'foreman::foreman_dir' %>/public
PassengerAppRoot <%= scope.lookupvar 'foreman::foreman_dir' %>
DocumentRoot <%= scope.lookupvar 'foreman::params::app_root' %>/public
PassengerAppRoot <%= scope.lookupvar 'foreman::params::app_root' %>
# Use puppet certificates for SSL

Also available in: Unified diff