charm: "./{{ ubuntu.release }}/glance"
num_units: {{ unit_qty() }}
{% if os.service.bindings %}
+ constraints: *ceph-access-constr
bindings:
- internal: internal-api
- admin: internal-api
- shared-db: internal-api
-{% if opnfv.spaces_dict.public is defined %}
- public: public-api
-{% else %}
- public: internal-api
-{% endif %}
+ "": *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 }}"
+ 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 %}
- region: {{ os.region }}
-{% if os.beta.public_api %}
- use-internal-endpoints: true
{% endif %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% 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 }}
-{% endif %}
-{% if os.beta.public_api %}
- os-public-hostname: api.{{ opnfv.domain }}
+ vip: *glance-vip
+{% endif %}
+{% 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() %}