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 %}
8 {% if opnfv.spaces_dict.storage is defined %}
9 cluster: storage-cluster
13 monitor-count: {{ unit_ceph_qty() }}
14 fsid: ecbb8960-0e21-11e2-b495-83a88f44db01
15 monitor-secret: AQD1P2xQiKglDhAA4NGUF5j38Mhq56qwz+45wg==
16 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
17 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
18 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
19 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
21 {% if os.network.ipv6 %}
22 prefer-ipv6: {{ os.network.ipv6 }}
25 {% if os.hyperconverged %}
26 {% for unit_id in to_select(unit_ceph_qty()) %}
27 - "lxd:nodes/{{ unit_id }}"
30 {% if os.ha.mode == 'ha' %}
31 {% for unit_id in range(0, 3) %}
32 - "lxd:nodes/{{ unit_id }}"
41 charm: "./{{ ubuntu.release }}/ceph-osd"
42 {% if os.hyperconverged %}
43 {% if opnfv.units >= 3 %}
44 num_units: {{ unit_ceph_qty() }}
46 num_units: {{ opnfv.units }}
51 {% if os.service.bindings %}
54 {% if opnfv.spaces_dict.storage is defined %}
55 cluster: storage-cluster
60 osd-devices: /srv/ceph-osd
62 osd-devices: {{ opnfv.storage_dict.ceph.disk }}
65 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
66 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
67 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
68 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
70 {% if os.network.ipv6 %}
71 prefer-ipv6: {{ os.network.ipv6 }}
74 {% if os.hyperconverged %}
75 {% if opnfv.units >= 3 %}
76 {% for unit_id in range(0, 3) %}
77 - "nodes/{{ unit_id }}"
80 {% for unit_id in range(0, opnfv.units) %}
81 - "nodes/{{ unit_id }}"
85 {% if os.ha.mode == 'ha' %}
86 {% for unit_id in range(0, 3) %}
87 - "nodes/{{ unit_id }}"
96 charm: "./{{ ubuntu.release }}/ceph-radosgw"
97 num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
98 {% if os.service.bindings %}
101 internal: internal-api
103 {% if opnfv.spaces_dict.public is defined %}
110 region: {{ os.region }}
111 operator-roles: "Member,admin"
112 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
113 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
114 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
115 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
117 {% if os.network.ipv6 %}
118 prefer-ipv6: {{ os.network.ipv6 }}
120 {% if opnfv.storage_dict.ceph is defined %}
121 ceph-osd-replication-count: {{ unit_ceph_qty() }}
124 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
125 - "lxd:nodes/{{ unit_id }}"