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 %}
71 osd-devices: {{ opnfv.storage_dict.ceph.disk }}
73 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
74 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
75 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
76 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
78 {% if os.network.ipv6 %}
79 prefer-ipv6: {{ os.network.ipv6 }}
82 {% if os.hyperconverged %}
83 {% if opnfv.units >= 3 %}
84 {% for unit_id in range(0, 3) %}
85 - "nodes/{{ unit_id }}"
88 {% for unit_id in range(0, opnfv.units) %}
89 - "nodes/{{ unit_id }}"
93 {% if os.ha.mode == 'ha' %}
94 {% for unit_id in range(0, 3) %}
95 - "nodes/{{ unit_id }}"
104 charm: "./{{ ubuntu.release }}/ceph-radosgw"
105 num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
106 {% if os.service.bindings %}
108 internal: internal-api
109 {% if opnfv.spaces_dict.public is defined %}
111 {% if opnfv.spaces_dict.data is defined %}
122 region: {{ os.region }}
123 operator-roles: "Member,admin"
124 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
125 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
126 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
127 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
129 {% if os.network.ipv6 %}
130 prefer-ipv6: {{ os.network.ipv6 }}
132 {% if opnfv.storage_dict.ceph is defined %}
133 ceph-osd-replication-count: {{ unit_ceph_qty() }}
136 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
137 - "lxd:nodes/{{ unit_id }}"