puppet-openstack_health/templates/openstack-health-frontend.vhost.erb

21 lines
862 B
Plaintext
Raw Normal View History

<% unless [443, 80].include?(scope.lookupvar("openstack_health::frontend::vhost_port").to_i) %>
Listen <%= scope.lookupvar("openstack_health::frontend::vhost_port") %>
<% end %>
<VirtualHost *:<%= scope.lookupvar("openstack_health::frontend::vhost_port") %>>
ServerName <%= scope.lookupvar("openstack_health::frontend::vhost_name") %>
ServerAdmin <%= scope.lookupvar("openstack_health::frontend::serveradmin") %>
LogLevel info
CustomLog ${APACHE_LOG_DIR}/openstack-health-frontend-access.log combined
ErrorLog ${APACHE_LOG_DIR}/openstack-health-frontend-error.log
<Directory <%= scope.lookupvar("openstack_health::frontend::frontend_dir") %>>
Order allow,deny
Allow from all
Require all granted
</Directory>
DocumentRoot <%= scope.lookupvar("openstack_health::frontend::frontend_dir") %>
DirectoryIndex index.html
</VirtualHost>