summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/juju2/bundlek8_tpl/ceph.yaml
blob: 56149033cff2c2aa328583de7ef66c6b95c1abc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    ceph-mon:
      charm: "./{{ ubuntu.release }}/ceph-mon"
      num_units: {{ unit_ceph_qty() }}
{% if os.service.bindings %}
      bindings:
        "": *oam-space
        public: *ceph-public-space
        cluster: *ceph-cluster-space
{% endif %}
      options:
        expected-osd-count: {{ unit_ceph_qty() }}
      to:
{% for unit_id in to_select(unit_ceph_qty()) %}
        - "lxd:nodes/{{ unit_id }}"
{% endfor %}

    ceph-osd:
      charm: "./{{ ubuntu.release }}/ceph-osd"
      num_units: {{ opnfv.units }}
{% if os.service.bindings %}
      bindings:
        "": *oam-space
        public: *ceph-public-space
        cluster: *ceph-cluster-space
{% endif %}
      options:
        osd-devices: *osd-devices
        osd-journal: *osd-journal
        osd-reformat: 'yes'
      to:
 {% for unit_id in range(0, opnfv.units) %}
         - "nodes/{{ unit_id }}"
 {% endfor %}