summaryrefslogtreecommitdiffstats
path: root/ci/bundle_tpl/nova-compute.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-07-01 13:35:25 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-07-01 14:15:44 -0500
commit87ff38481a31846f3171976fbb039d5d3e10929a (patch)
treeb1dea2757cc9a9362ef23ac9cf8cadbe0613658d /ci/bundle_tpl/nova-compute.yaml
parent628346cfd690524f1ec455ca35c3bc7474640079 (diff)
modified for nonha bundles now.
Change-Id: Ic29910c9e95718603588da9fd2664ed933a88b7a Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/bundle_tpl/nova-compute.yaml')
-rw-r--r--ci/bundle_tpl/nova-compute.yaml8
1 files changed, 8 insertions, 0 deletions
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 %}