adding ceph support for Kubernetes.
[joid.git] / ci / config_tpl / juju2 / bundlek8_tpl / ceph.yaml
1
2     ceph-mon:
3       charm: "./{{ ubuntu.release }}/ceph-mon"
4       num_units: {{ unit_ceph_qty() }}
5 {% if os.service.bindings %}
6       bindings:
7         "": *oam-space
8         public: *ceph-public-space
9         cluster: *ceph-cluster-space
10 {% endif %}
11       options:
12         expected-osd-count: {{ unit_ceph_qty() }}
13       to:
14 {% for unit_id in to_select(unit_ceph_qty()) %}
15         - "lxd:nodes/{{ unit_id }}"
16 {% endfor %}
17
18     ceph-osd:
19       charm: "./{{ ubuntu.release }}/ceph-osd"
20       num_units: {{ opnfv.units }}
21 {% if os.service.bindings %}
22       bindings:
23         "": *oam-space
24         public: *ceph-public-space
25         cluster: *ceph-cluster-space
26 {% endif %}
27       options:
28         osd-devices: *osd-devices
29         osd-journal: *osd-journal
30         osd-reformat: 'yes'
31       to:
32  {% for unit_id in range(0, opnfv.units) %}
33          - "nodes/{{ unit_id }}"
34  {% endfor %}
35