puppet-openstack_health/templates/openstack-health-frontend.v...

23 lines
896 B
Plaintext

<% unless [443, 80].include?(scope.lookupvar("::openstack_health::vhost::vhost_port").to_i) %>
Listen <%= scope.lookupvar("::openstack_health::vhost::vhost_port") %>
<% end %>
<VirtualHost *:<%= scope.lookupvar("::openstack_health::vhost::vhost_port") %>>
ServerName <%= scope.lookupvar("::openstack_health::vhost::vhost_name") %>
ServerAdmin <%= scope.lookupvar("::openstack_health::vhost::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::vhost::frontend_dir') %>>
Order allow,deny
Allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
DocumentRoot <%= scope.lookupvar('::openstack_health::vhost::frontend_dir') %>
DirectoryIndex index.html
</VirtualHost>