diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-09 06:44:27 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-01-09 06:47:01 -0600 |
commit | 5fbb32535bb6456989407a946587b1bcbe94d0ee (patch) | |
tree | 7712d333e1392f5ccdb51356a5d12e2828c5e2b1 /ci/config_tpl/juju2/bundle_tpl/ceph.yaml | |
parent | 512a3b283ff25cad16a36605c80df4742673690b (diff) |
modified to made an option to support spaces as per JUJU 2.0
Change-Id: Id768aa396924a2f17b4f530749452ee1e41b20b2
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/ceph.yaml')
-rw-r--r-- | ci/config_tpl/juju2/bundle_tpl/ceph.yaml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml index 63a95d9b..16a3206d 100644 --- a/ci/config_tpl/juju2/bundle_tpl/ceph.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/ceph.yaml @@ -36,7 +36,11 @@ ceph-osd: charm: "./{{ ubuntu.release }}/ceph-osd" {% if os.hyperconverged %} +{% if opnfv.units >= 3 %} + num_units: {{ unit_ceph_qty() }} +{% else %} num_units: {{ opnfv.units }} +{% endif %} {% else %} num_units: 3 {% endif %} @@ -53,10 +57,16 @@ {% endif %} to: {% if os.hyperconverged %} -{% for unit_id in range(0, opnfv.units) %} +{% if opnfv.units >= 3 %} +{% for unit_id in range(0, 3) %} - "nodes/{{ unit_id }}" {% endfor %} {% else %} + {% for unit_id in range(0, opnfv.units) %} + - "nodes/{{ unit_id }}" + {% endfor %} +{% endif %} +{% else %} {% if os.ha.mode == 'ha' %} {% for unit_id in range(0, 3) %} - "nodes/{{ unit_id }}" @@ -70,6 +80,7 @@ ceph-radosgw: charm: "./{{ ubuntu.release }}/ceph-radosgw" num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }} +{% if os.service.bindings %} bindings: internal: internal {% if opnfv.spaces_dict.data is defined %} @@ -82,6 +93,7 @@ {% else %} public: internal {% endif %} +{% endif %} options: region: {{ os.region }} use-embedded-webserver: true |