summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/glance.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-02-02 17:56:27 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-02-02 17:56:27 -0600
commit2744c52b2a708a5a57f264f57f2fffe09dce4831 (patch)
treed78a5873a74f98f7fef162265eb432ea290c062f /ci/config_tpl/juju2/bundle_tpl/glance.yaml
parent47386f12fa5d0785f338906514f5a595e2634a10 (diff)
modfiied to not to expose api on admin network if public is not
defined. Change-Id: I3f8a79de2cb85d0273bdfd4d8b21e1eb7a7a4979 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/glance.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/glance.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/glance.yaml b/ci/config_tpl/juju2/bundle_tpl/glance.yaml
index c57260c6..a34a0f0b 100644
--- a/ci/config_tpl/juju2/bundle_tpl/glance.yaml
+++ b/ci/config_tpl/juju2/bundle_tpl/glance.yaml
@@ -5,15 +5,16 @@
bindings:
internal: internal-api
shared-db: internal-api
+{% if opnfv.spaces_dict.public is defined %}
+ public: public-api
{% if opnfv.spaces_dict.data is defined %}
admin: admin-api
{% else %}
admin: internal-api
{% endif %}
-{% if opnfv.spaces_dict.public is defined %}
- public: public-api
{% else %}
public: internal-api
+ admin: internal-api
{% endif %}
{% endif %}
options: