1 {% if opnfv.storage_dict.ceph is defined %}
3 charm: "local:{{ ubuntu.release }}/ceph"
4 num_units: {{ unit_ceph_qty() }}
6 monitor-count: {{ unit_ceph_qty() }}
7 fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
8 monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
9 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
10 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
11 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
12 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
14 {% if os.network.ipv6 %}
15 prefer-ipv6: {{ os.network.ipv6 }}
17 {% if opnfv.spaces_dict.storage is defined %}
18 #ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
21 {% if os.hyperconverged %}
22 {% for unit_id in to_select(unit_ceph_qty()) %}
23 - "lxc:nodes={{ unit_id }}"
26 {% if os.ha.mode == 'ha' %}
27 {% for unit_id in range(0, 3) %}
28 - "lxc:nodes={{ unit_id }}"
37 charm: "local:{{ ubuntu.release }}/ceph-osd"
38 {% if os.hyperconverged %}
39 num_units: {{ opnfv.units }}
44 osd-devices: {{ opnfv.storage_dict.ceph.disk }}
46 {% if ubuntu.release == 'trusty' and os.release < 'newton' %}
47 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
48 {% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
49 source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
51 {% if os.network.ipv6 %}
52 prefer-ipv6: {{ os.network.ipv6 }}
55 {% if os.hyperconverged %}
56 {% for unit_id in range(0, opnfv.units) %}
57 - "nodes={{ unit_id }}"
60 {% if os.ha.mode == 'ha' %}
61 {% for unit_id in range(0, 3) %}
62 - "nodes={{ unit_id }}"
71 charm: "local:{{ ubuntu.release }}/ceph-radosgw"
72 num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
74 region: {{ os.region }}
75 use-embedded-webserver: true
76 operator-roles: "Member,admin"
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 }}
85 {% if opnfv.storage_dict.ceph is defined %}
86 ceph-osd-replication-count: {{ unit_ceph_qty() }}
89 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
90 - "lxc:nodes={{ unit_id }}"