Use apache_config module in place of symlink

Change-Id: I50fc994e776bceccf91ce639de7af0e902c7bc78
This commit is contained in:
Swann Croiset 2016-12-01 10:15:06 +01:00
parent 2e7d83bd72
commit 809af42095
1 changed files with 7 additions and 4 deletions

View File

@ -49,13 +49,16 @@ horizon_apache_config:
- pkg: horizon_packages
{%- if grains.os_family == 'Debian' %}
/etc/apache2/conf-enabled/openstack-dashboard.conf:
file.symlink:
- target: /etc/apache2/conf-available/openstack-dashboard.conf
apache_enable_wsgi:
apache_module.enable:
- name: wsgi
enable_horizon_apache_config:
apache_conf.enable:
- name: openstack-dashboard
- require:
- file: horizon_apache_config
- apache_module: apache_enable_wsgi
{%- endif %}
horizon_services: