modified to accomodate the scaleio bundles and charms.
[joid.git] / ci / config_tpl / bundle_tpl / scaleio.yaml
1 {% if opnfv.storage_dict.scaleio is defined %}
2     scaleio-mdm:
3       charm: "local:{{ ubuntu.release }}/scaleio-mdm"
4       num_units: {{ unit_scaleio_qty() }}
5       options:
6         cluster-mode: 3
7       to:
8 {% if os.hyperconverged %}
9 {% for unit_id in range(0, 3) %}
10         - "nodes={{ unit_id }}"
11 {% endfor %}
12 {% else %}
13         - "nodes=0"
14         - "nodes-compute=0"
15         - "nodes-compute=1"
16 {% endif %}
17     scaleio-sds:
18       charm: "local:{{ ubuntu.release }}/scaleio-sds"
19       num_units: {{ opnfv.units }}
20       options:
21         protection-domain: 'pd1'
22         device-paths: {{ opnfv.storage_dict.scaleio.disk }}
23       to:
24 {% if os.hyperconverged %}
25 {% for unit_id in range(0, opnfv.units) %}
26         - "nodes={{ unit_id }}"
27 {% endfor %}
28 {% else %}
29 {% for unit_id in range(0, opnfv.units) %}
30         - "{{ unit_id }}"
31 {% endfor %}
32 {% endif %}
33     scaleio-sdc:
34       charm: "local:{{ ubuntu.release }}/scaleio-sdc"
35       num_units: {{ opnfv.units }}
36       to:
37 {% if os.hyperconverged %}
38 {% for unit_id in range(0, opnfv.units) %}
39         - "nodes={{ unit_id }}"
40 {% endfor %}
41 {% else %}
42 {% for unit_id in range(0, opnfv.units) %}
43         - "{{ unit_id }}"
44 {% endfor %}
45 {% endif %}
46     scaleio-gw:
47       charm: "local:{{ ubuntu.release }}/scaleio-gw"
48       to:
49         - "nodes=0"
50     scaleio-gui:
51       charm: "local:{{ ubuntu.release }}/scaleio-gui"
52       to:
53         - "nodes=0"
54 {% endif %}