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 public: storage-cluster
15 monitor-count: {{ unit_ceph_qty() }}
16 fsid: ecbb8960-0e21-11e2-b495-83a88f44db01
17 monitor-secret: AQD1P2xQiKglDhAA4NGUF5j38Mhq56qwz+45wg==
18 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
19 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
20 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
21 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
23 {% if os.network.ipv6 %}
24 prefer-ipv6: {{ os.network.ipv6 }}
27 {% if os.hyperconverged %}
28 {% for unit_id in to_select(unit_ceph_qty()) %}
29 - "lxd:nodes/{{ unit_id }}"
32 {% if os.ha.mode == 'ha' %}
33 {% for unit_id in range(0, 3) %}
34 - "lxd:nodes/{{ unit_id }}"
43 charm: "./{{ ubuntu.release }}/ceph-osd"
44 {% if os.hyperconverged %}
45 {% if opnfv.units >= 3 %}
46 num_units: {{ unit_ceph_qty() }}
48 num_units: {{ opnfv.units }}
53 {% if os.service.bindings %}
56 {% if opnfv.spaces_dict.storage is defined %}
57 public: storage-cluster
58 cluster: storage-cluster
66 osd-devices: /srv/ceph-osd
68 osd-devices: {{ opnfv.storage_dict.ceph.disk }}
71 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
72 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
73 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
74 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
76 {% if os.network.ipv6 %}
77 prefer-ipv6: {{ os.network.ipv6 }}
80 {% if os.hyperconverged %}
81 {% if opnfv.units >= 3 %}
82 {% for unit_id in range(0, 3) %}
83 - "nodes/{{ unit_id }}"
86 {% for unit_id in range(0, opnfv.units) %}
87 - "nodes/{{ unit_id }}"
91 {% if os.ha.mode == 'ha' %}
92 {% for unit_id in range(0, 3) %}
93 - "nodes/{{ unit_id }}"
102 charm: "./{{ ubuntu.release }}/ceph-radosgw"
103 num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
104 {% if os.service.bindings %}
107 internal: internal-api
109 {% if opnfv.spaces_dict.public is defined %}
114 {% if opnfv.spaces_dict.storage is defined %}
119 region: {{ os.region }}
120 operator-roles: "Member,admin"
121 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
122 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
123 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
124 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
126 {% if os.network.ipv6 %}
127 prefer-ipv6: {{ os.network.ipv6 }}
129 {% if opnfv.storage_dict.ceph is defined %}
130 ceph-osd-replication-count: {{ unit_ceph_qty() }}
133 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
134 - "lxd:nodes/{{ unit_id }}"