X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=ci%2Fconfig_tpl%2Fjuju2%2Fbundle_tpl%2Fglance.yaml;h=1eac2e075195db134b2ef312dd16105b211c6db3;hb=f22b547900c6dacd937cdb1e53bacd39c6f56f6b;hp=eb812e9a76f147d18715b4f0f73f3c39bcc87a0e;hpb=f1dfc0776d32dea2a2fe7e2cb2b15b1836a6b666;p=joid.git diff --git a/ci/config_tpl/juju2/bundle_tpl/glance.yaml b/ci/config_tpl/juju2/bundle_tpl/glance.yaml index eb812e9a..1eac2e07 100644 --- a/ci/config_tpl/juju2/bundle_tpl/glance.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/glance.yaml @@ -1,11 +1,22 @@ glance: charm: "./{{ ubuntu.release }}/glance" num_units: {{ unit_qty() }} +{% if os.service.bindings %} + constraints: *ceph-access-constr + bindings: + "": *oam-space + public: *public-space + admin: *admin-space + internal: *internal-space + shared-db: *internal-space +{% endif %} + series: {{ ubuntu.release }} options: - openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}" - region: {{ os.region }} -{% if os.beta.public_api %} - use-internal-endpoints: true + openstack-origin: *openstack-origin + worker-multiplier: *worker-multiplier + region: *openstack-region +{% if os.git_repo.origin_git %} + openstack-origin-git: "{{ os.git_repo.branch }}" {% endif %} {% if os.network.ipv6 %} prefer-ipv6: {{ os.network.ipv6 }} @@ -13,14 +24,16 @@ {% if opnfv.storage_dict.ceph is defined %} ceph-osd-replication-count: {{ unit_ceph_qty() }} {% endif %} -{% if os.api.worker_multiplier %} - worker-multiplier: {{ os.api.worker_multiplier }} -{% endif %} {% if os.ha.mode == 'ha' %} - vip: {{ opnfv.vip.glance }} + vip: *glance-vip {% endif %} -{% if os.beta.public_api %} - os-public-hostname: api.{{ opnfv.domain }} +{% if os.api.ssl %} + ssl_ca: *ssl_ca + ssl_cert: *ssl_cert + ssl_key: *ssl_key + os-public-hostname: *hostname_glance_public + os-internal-hostname: *hostname_glance_public + os-admin-hostname: *hostname_glance_public {% endif %} to: {% for unit_id in to_select() %}