Fix metadata_proxy settings for queens
Change-Id: Iaa3af7ea8a6d46e1fc38b26c3e89d1225c9ca1aa
diff --git a/nova/files/queens/nova-controller.conf.Debian b/nova/files/queens/nova-controller.conf.Debian
index 50e03d6..2e725ad 100644
--- a/nova/files/queens/nova-controller.conf.Debian
+++ b/nova/files/queens/nova-controller.conf.Debian
@@ -7695,6 +7695,7 @@
# * metadata_proxy_shared_secret
# (boolean value)
#service_metadata_proxy = false
+service_metadata_proxy=True
#
# This option holds the shared secret string used to validate proxy
@@ -7708,6 +7709,9 @@
# * service_metadata_proxy
# (string value)
#metadata_proxy_shared_secret =
+{%- if controller.get('networking', 'default') != "contrail" %}
+metadata_proxy_shared_secret = {{ controller.metadata.password }}
+{%- endif %}
# PEM encoded Certificate Authority to use when verifying HTTPs
# connections. (string value)