da1e8b542c03d1b28148bbf7916d154b71d6521b
[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 {% for unit_id in to_select(unit_ceph_qty()) %}
14         - "lxc:nodes={{ unit_id }}"
15 {% endfor %}
16     ceph-osd:
17       charm: "local:{{ ubuntu.release }}/ceph-osd"
18 {% if os.hyperconverged %}
19       num_units: {{ opnfv.units }}
20 {% else %}
21       num_units: 3
22 {% endif %}
23       options:
24         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
25         osd-reformat: 'yes'
26       to:
27 {% if os.hyperconverged %}
28 {% for unit_id in range(0, opnfv.units) %}
29         - "nodes={{ unit_id }}"
30 {% endfor %}
31 {% else %}
32 {% if os.ha.mode == 'ha' %}
33 {% for unit_id in range(0, 3) %}
34         - "nodes={{ unit_id }}"
35 {% endfor %}
36 {% else %}
37         - "nodes=0"
38         - "nodes-compute=0"
39         - "nodes-compute=1"
40 {% endif %}
41 {% endif %}
42     ceph-radosgw:
43       charm: "local:{{ ubuntu.release }}/ceph-radosgw"
44       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
45       options:
46         use-embedded-webserver: true
47         operator-roles: "Member,admin"
48       to:
49 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
50         - "lxc:nodes={{ unit_id }}"
51 {% endfor %}
52 {% endif %}