Use apache_config module in place of symlink
Change-Id: I50fc994e776bceccf91ce639de7af0e902c7bc78
diff --git a/horizon/server/service.sls b/horizon/server/service.sls
index 344a095..86f0c21 100644
--- a/horizon/server/service.sls
+++ b/horizon/server/service.sls
@@ -49,13 +49,16 @@
- 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: