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