summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/scaleio.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-10-16 07:54:56 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-10-16 23:43:55 -0500
commitf1dfc0776d32dea2a2fe7e2cb2b15b1836a6b666 (patch)
treeb75bd8543a4ba5cc7919c43588b2522201c88c90 /ci/config_tpl/juju2/bundle_tpl/scaleio.yaml
parent498d228be6d2bb1f68b5d63813e01ecd68b315cd (diff)
cmodfiied to add juju 2.0 support.
Change-Id: I3981f796cfb9ceb9f32522f4fed831d66e389c48 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/bundle_tpl/scaleio.yaml')
-rw-r--r--ci/config_tpl/juju2/bundle_tpl/scaleio.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/bundle_tpl/scaleio.yaml b/ci/config_tpl/juju2/bundle_tpl/scaleio.yaml
new file mode 100644
index 00000000..0dae4294
--- /dev/null
+++ b/ci/config_tpl/juju2/bundle_tpl/scaleio.yaml
@@ -0,0 +1,56 @@
+{% if opnfv.storage_dict.scaleio is defined %}
+ scaleio-mdm:
+ charm: "./{{ ubuntu.release }}/scaleio-mdm"
+ num_units: {{ unit_scaleio_qty() }}
+ options:
+ cluster-mode: 3
+ to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, 3) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+ - "nodes/0"
+ - "nodes-compute/0"
+ - "nodes-compute/1"
+{% endif %}
+ scaleio-sds:
+ charm: "./{{ ubuntu.release }}/scaleio-sds"
+ num_units: {{ opnfv.units }}
+ options:
+ protection-domain: 'pd1'
+ device-paths: {{ opnfv.storage_dict.scaleio.disk }}
+ to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, opnfv.units) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+{% for unit_id in range(0, opnfv.units) %}
+ - "{{ unit_id }}"
+{% endfor %}
+{% endif %}
+ scaleio-sdc:
+ charm: "./{{ ubuntu.release }}/scaleio-sdc"
+ num_units: {{ opnfv.units }}
+ to:
+{% if os.hyperconverged %}
+{% for unit_id in range(0, opnfv.units) %}
+ - "nodes/{{ unit_id }}"
+{% endfor %}
+{% else %}
+{% for unit_id in range(0, opnfv.units) %}
+ - "{{ unit_id }}"
+{% endfor %}
+{% endif %}
+ scaleio-gw:
+ charm: "./{{ ubuntu.release }}/scaleio-gw"
+ num_units: 1
+ to:
+ - "nodes/0"
+ scaleio-gui:
+ charm: "./{{ ubuntu.release }}/scaleio-gui"
+ num_units: 1
+ to:
+ - "nodes/0"
+{% endif %}