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
113 {% if opnfv.spaces_dict.public is defined %}
115 {% if opnfv.spaces_dict.data is defined %}
126 region: {{ os.region }}
127 operator-roles: "Member,admin"
128 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
129 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
130 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
131 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
133 {% if os.network.ipv6 %}
134 prefer-ipv6: {{ os.network.ipv6 }}
136 {% if opnfv.storage_dict.ceph is defined %}
137 ceph-osd-replication-count: {{ unit_ceph_qty() }}
140 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
141 - "lxd:nodes/{{ unit_id }}"