e091e45134
This is a initial version of how to deploy OpenStack-Health. This script provisions openstack-health as it is today. This will be a foundation for future deployments, once the application becomes more mature. Change-Id: Id4ef45bba0db28b95d7fb72799cb86ab4db6343b Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com> Co-Authored-By: Caio Carrara <ccarrara@thoughtworks.com>
21 lines
862 B
Plaintext
21 lines
862 B
Plaintext
<% 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>
|