blob: 16a3206d63a3178a2155ab3c9ad3bdae242865c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
{% if opnfv.storage_dict.ceph is defined %}
ceph:
charm: "./{{ ubuntu.release }}/ceph"
num_units: {{ unit_ceph_qty() }}
options:
monitor-count: {{ unit_ceph_qty() }}
fsid: 5a791d94-980b-11e4-b6f6-3c970e8b1cf7
monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if opnfv.spaces_dict.storage is defined %}
#ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
{% endif %}
to:
{% if os.hyperconverged %}
{% for unit_id in to_select(unit_ceph_qty()) %}
- "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% else %}
{% if os.ha.mode == 'ha' %}
{% for unit_id in range(0, 3) %}
- "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% else %}
- "lxd:nodes/0"
- "lxd:nodes/0"
- "lxd:nodes/0"
{% endif %}
{% endif %}
ceph-osd:
charm: "./{{ ubuntu.release }}/ceph-osd"
{% if os.hyperconverged %}
{% if opnfv.units >= 3 %}
num_units: {{ unit_ceph_qty() }}
{% else %}
num_units: {{ opnfv.units }}
{% endif %}
{% else %}
num_units: 3
{% endif %}
options:
osd-devices: {{ opnfv.storage_dict.ceph.disk }}
osd-reformat: 'yes'
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
to:
{% if os.hyperconverged %}
{% if opnfv.units >= 3 %}
{% for unit_id in range(0, 3) %}
- "nodes/{{ unit_id }}"
{% endfor %}
{% else %}
{% for unit_id in range(0, opnfv.units) %}
- "nodes/{{ unit_id }}"
{% endfor %}
{% endif %}
{% else %}
{% if os.ha.mode == 'ha' %}
{% for unit_id in range(0, 3) %}
- "nodes/{{ unit_id }}"
{% endfor %}
{% else %}
- "nodes/0"
- "nodes-compute/0"
- "nodes-compute/1"
{% endif %}
{% endif %}
ceph-radosgw:
charm: "./{{ ubuntu.release }}/ceph-radosgw"
num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
{% if os.service.bindings %}
bindings:
internal: internal
{% if opnfv.spaces_dict.data is defined %}
admin: admin
{% else %}
admin: internal
{% endif %}
{% if opnfv.spaces_dict.public is defined %}
public: public
{% else %}
public: internal
{% endif %}
{% endif %}
options:
region: {{ os.region }}
use-embedded-webserver: true
operator-roles: "Member,admin"
{% if ubuntu.release == 'trusty' and os.release < 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% elif ubuntu.release == 'xenial' and os.release >= 'newton' %}
source: "cloud:{{ ubuntu.release }}-updates/{{ os.release }}"
{% endif %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if opnfv.storage_dict.ceph is defined %}
ceph-osd-replication-count: {{ unit_ceph_qty() }}
{% endif %}
to:
{% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
- "lxd:nodes/{{ unit_id }}"
{% endfor %}
{% endif %}
|