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