From 87ff38481a31846f3171976fbb039d5d3e10929a Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Fri, 1 Jul 2016 13:35:25 -0500 Subject: modified for nonha bundles now. Change-Id: Ic29910c9e95718603588da9fd2664ed933a88b7a Signed-off-by: Narinder Gupta --- ci/bundle_tpl/nova-compute.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ci/bundle_tpl/nova-compute.yaml') diff --git a/ci/bundle_tpl/nova-compute.yaml b/ci/bundle_tpl/nova-compute.yaml index 81803807..bf73c675 100644 --- a/ci/bundle_tpl/nova-compute.yaml +++ b/ci/bundle_tpl/nova-compute.yaml @@ -1,6 +1,10 @@ nova-compute: charm: "local:{{ ubuntu.release }}/nova-compute" +{% if os.ha.mode == 'ha' %} num_units: {{ opnfv.units - 1 }} +{% else %} + num_units: 1 +{% endif %} options: enable-live-migration: true enable-resize: true @@ -13,6 +17,10 @@ virt-type: lxd {% endif %} to: +{% if os.ha.mode == 'ha' %} {% for unit_id in range(1, opnfv.units) %} - "nodes={{ unit_id }}" {% endfor %} +{% else %} + - "nodes=1" +{% endif %} -- cgit 1.2.3-korg