1 {% if opnfv.storage_dict.ceph is defined %}
3 charm: "./{{ ubuntu.release }}/ceph-mon"
4 num_units: {{ unit_ceph_qty() }}
5 {% if os.service.bindings %}
7 {% if opnfv.spaces_dict.public is defined %}
12 {% if opnfv.spaces_dict.storage is defined %}
19 monitor-count: {{ unit_ceph_qty() }}
20 fsid: ecbb8960-0e21-11e2-b495-83a88f44db01
21 monitor-secret: AQD1P2xQiKglDhAA4NGUF5j38Mhq56qwz+45wg==
22 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
23 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
24 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
25 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
27 {% if os.network.ipv6 %}
28 prefer-ipv6: {{ os.network.ipv6 }}
31 {% if os.hyperconverged %}
32 {% for unit_id in to_select(unit_ceph_qty()) %}
33 - "lxd:nodes/{{ unit_id }}"
36 {% if os.ha.mode == 'ha' %}
37 {% for unit_id in range(0, 3) %}
38 - "lxd:nodes/{{ unit_id }}"
47 charm: "./{{ ubuntu.release }}/ceph-osd"
48 {% if os.hyperconverged %}
49 {% if opnfv.units >= 3 %}
50 num_units: {{ unit_ceph_qty() }}
52 num_units: {{ opnfv.units }}
57 {% if os.service.bindings %}
59 {% if opnfv.spaces_dict.public is defined %}
64 {% if opnfv.spaces_dict.storage is defined %}
72 osd-devices: /srv/ceph-osd
74 osd-devices: {{ opnfv.storage_dict.ceph.disk }}
77 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
78 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
79 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
80 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
82 {% if os.network.ipv6 %}
83 prefer-ipv6: {{ os.network.ipv6 }}
86 {% if os.hyperconverged %}
87 {% if opnfv.units >= 3 %}
88 {% for unit_id in range(0, 3) %}
89 - "nodes/{{ unit_id }}"
92 {% for unit_id in range(0, opnfv.units) %}
93 - "nodes/{{ unit_id }}"
97 {% if os.ha.mode == 'ha' %}
98 {% for unit_id in range(0, 3) %}
99 - "nodes/{{ unit_id }}"
108 charm: "./{{ ubuntu.release }}/ceph-radosgw"
109 num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
110 {% if os.service.bindings %}
112 internal: internal-api
114 {% if opnfv.spaces_dict.public is defined %}
121 region: {{ os.region }}
122 operator-roles: "Member,admin"
123 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
124 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
125 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
126 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
128 {% if os.network.ipv6 %}
129 prefer-ipv6: {{ os.network.ipv6 }}
131 {% if opnfv.storage_dict.ceph is defined %}
132 ceph-osd-replication-count: {{ unit_ceph_qty() }}
135 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
136 - "lxd:nodes/{{ unit_id }}"