summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundle_tpl/scaleio.yaml
blob: 0dae42941f171790d582b5a0512fac6af6e49325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 %}