modified to support intel pod9.
[joid.git] / ci / config_tpl / bundle_tpl / ceph.yaml
1 {% if opnfv.storage_dict.ceph is defined %}
2     ceph:
3       charm: "local:{{ ubuntu.release }}/ceph"
4       num_units: {{ unit_ceph_qty() }}
5       options:
6         monitor-count: {{ unit_ceph_qty() }}
7         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
8         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
9 {% if opnfv.spaces_dict.storage is defined %}
10         #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
11 {% endif %}
12       to:
13 {% if os.hyperconverged %}
14 {% for unit_id in to_select(unit_ceph_qty()) %}
15         - "lxc:nodes={{ unit_id }}"
16 {% endfor %}
17 {% else %}
18 {% if os.ha.mode == 'ha' %}
19 {% for unit_id in range(0, 3) %}
20         - "lxc:nodes={{ unit_id }}"
21 {% endfor %}
22 {% else %}
23         - "lxc:nodes=0"
24         - "lxc:nodes=0"
25         - "lxc:nodes=0"
26 {% endif %}
27 {% endif %}
28     ceph-osd:
29       charm: "local:{{ ubuntu.release }}/ceph-osd"
30 {% if os.hyperconverged %}
31       num_units: {{ opnfv.units }}
32 {% else %}
33       num_units: 3
34 {% endif %}
35       options:
36         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
37         osd-reformat: 'yes'
38       to:
39 {% if os.hyperconverged %}
40 {% for unit_id in range(0, opnfv.units) %}
41         - "nodes={{ unit_id }}"
42 {% endfor %}
43 {% else %}
44 {% if os.ha.mode == 'ha' %}
45 {% for unit_id in range(0, 3) %}
46         - "nodes={{ unit_id }}"
47 {% endfor %}
48 {% else %}
49         - "nodes=0"
50         - "nodes-compute=0"
51         - "nodes-compute=1"
52 {% endif %}
53 {% endif %}
54     ceph-radosgw:
55       charm: "local:{{ ubuntu.release }}/ceph-radosgw"
56       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
57       options:
58         use-embedded-webserver: true
59         operator-roles: "Member,admin"
60       to:
61 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
62         - "lxc:nodes={{ unit_id }}"
63 {% endfor %}
64 {% endif %}