Merge "Add support of OPENSTACK_HEAT_STACK param"
diff --git a/horizon/files/horizon_settings/_heat_settings.py b/horizon/files/horizon_settings/_heat_settings.py
new file mode 100644
index 0000000..7f168c3
--- /dev/null
+++ b/horizon/files/horizon_settings/_heat_settings.py
@@ -0,0 +1,11 @@
+{%- from "horizon/map.jinja" import server with context %}
+
+{%- if server.app is defined %}
+{%- set app = server.app.app_name %}
+{%- else %}
+{%- set app = server %}
+{%- endif %}
+
+{%- if app.get('openstack_heat_stack', false) %}
+OPENSTACK_HEAT_STACK = {'enable_user_pass': True}
+{%- endif %}
diff --git a/horizon/files/local_settings/mitaka_settings.py b/horizon/files/local_settings/mitaka_settings.py
index fc422f8..4578e05 100644
--- a/horizon/files/local_settings/mitaka_settings.py
+++ b/horizon/files/local_settings/mitaka_settings.py
@@ -62,4 +62,5 @@
 {% include "horizon/files/horizon_settings/_nova_settings.py" %}
 {% include "horizon/files/horizon_settings/_glance_settings.py" %}
 {% include "horizon/files/horizon_settings/_neutron_settings.py" %}
+{% include "horizon/files/horizon_settings/_heat_settings.py" %}
 {% include "horizon/files/horizon_settings/_websso_settings.py" %}