diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2018-01-22 18:36:29 -0600 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2018-01-22 18:36:56 -0600 |
commit | aadc493bf402476ae10f526403591f9f21d8e715 (patch) | |
tree | 506227c6e4118ef0dd2d4916814d351f73345f22 /ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml | |
parent | 69bb3846048a7c05ddb96364c4881da5e4f1b62d (diff) |
modified to enable the DVR on the deployment by default.
Change-Id: Iea20b4071a6d8f67db4c190e509ef71f0a70358a
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml')
-rw-r--r-- | ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml b/ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml index 3c3a7200..6e084d15 100644 --- a/ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml +++ b/ci/config_tpl/juju2/bundle_tpl/nova-compute.yaml @@ -1,7 +1,11 @@ nova-compute: charm: "./{{ ubuntu.release }}/nova-compute" {% if os.hyperconverged %} - num_units: {{ opnfv.units - 1 }} +{% if os.ha.mode == 'ha' %} + num_units: {{ opnfv.units - 2 }} +{% else %} + num_units: {{ opnfv.units - 1 }} +{% endif %} {% else %} {% if os.ha.mode == 'ha' %} num_units: {{ opnfv.units - 3 }} @@ -39,9 +43,15 @@ {% endif %} to: {% if os.hyperconverged %} +{% if os.ha.mode == 'ha' %} +{% for unit_id in range(2, opnfv.units) %} + - "nodes/{{ unit_id }}" +{% endfor %} +{% else %} {% for unit_id in range(1, opnfv.units) %} - "nodes/{{ unit_id }}" {% endfor %} +{% endif %} {% else %} {% if os.ha.mode == 'ha' %} {% for unit_id in range(0, opnfv.units - 3) %} |