summaryrefslogtreecommitdiffstats
path: root/ci/bundle_tpl/ceph.yaml
blob: de06f9f71aecb5bcaf6f76e8e445786a6d79723f (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
36
37
38
{% if opnfv.storage_dict.ceph is defined %}
    ceph:
      charm: "local:{{ ubuntu.release }}/ceph"
      num_units: {{ unit_qty() }}
      options:
        monitor-count: {{ unit_qty() }}
        fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
        monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
        osd-reformat: {{ opnfv.storage_dict.ceph.reformat }}
{% if opnfv.spaces_dict.storage is defined %}
        ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
{% endif %}
#        ceph-public-network: 192.168.0.0/24
      to:
{% for unit_id in to_select() %}
        - "lxc:nodes={{ unit_id }}"
{% endfor %}
    ceph-osd:
      charm: "local:{{ ubuntu.release }}/ceph-osd"
      num_units: {{ unit_qty() }}
      options:
        osd-devices: {{ opnfv.storage_dict.ceph.disk }}
        osd-reformat: 'yes'
      to:
{% for unit_id in to_select() %}
        - "nodes={{ unit_id }}"
{% endfor %}
    ceph-radosgw:
      charm: "local:{{ ubuntu.release }}/ceph-radosgw"
      num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
      options:
        use-embedded-webserver: true
        operator-roles: "Member,admin"
      to:
{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
        - "lxc:nodes={{ unit_id }}"
{% endfor %}
{% endif %}