modfied to suite the latest code changes.
[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_qty() }}
5       options:
6         monitor-count: {{ unit_qty() }}
7         fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
8         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
9         osd-reformat: {{ opnfv.storage_dict.ceph.reformat }}
10 {% if opnfv.spaces_dict.storage is defined %}
11         ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
12 {% endif %}
13 #        ceph-public-network: 192.168.0.0/24
14       to:
15 {% for unit_id in to_select() %}
16         - "lxc:nodes={{ unit_id }}"
17 {% endfor %}
18     ceph-osd:
19       charm: "local:{{ ubuntu.release }}/ceph-osd"
20       num_units: {{ unit_qty() }}
21       options:
22         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
23         osd-reformat: 'yes'
24       to:
25 {% for unit_id in to_select() %}
26         - "nodes={{ unit_id }}"
27 {% endfor %}
28     ceph-radosgw:
29       charm: "local:{{ ubuntu.release }}/ceph-radosgw"
30       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
31       options:
32         use-embedded-webserver: true
33         operator-roles: "Member,admin"
34       to:
35 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
36         - "lxc:nodes={{ unit_id }}"
37 {% endfor %}
38 {% endif %}