removing the public gateway addition code as it was added because
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / ceph.yaml
1 {% if opnfv.storage_dict.ceph is defined %}
2     ceph-mon:
3       charm: "./{{ ubuntu.release }}/ceph-mon"
4       num_units: {{ unit_ceph_qty() }}
5 {% if os.service.bindings %}
6       bindings:
7         "": *oam-space
8         public: *ceph-public-space
9         cluster: *ceph-cluster-space
10 {% endif %}
11       options:
12         expceted-osd-count: {{ unit_ceph_qty() }}
13         source: *openstack-origin
14 {% if os.network.ipv6 %}
15         prefer-ipv6: {{ os.network.ipv6 }}
16 {% endif %}
17       to:
18 {% if os.hyperconverged %}
19 {% for unit_id in to_select(unit_ceph_qty()) %}
20         - "lxd:nodes/{{ unit_id }}"
21 {% endfor %}
22 {% else %}
23 {% if os.ha.mode == 'ha' %}
24 {% for unit_id in range(0, 3) %}
25         - "lxd:nodes/{{ unit_id }}"
26 {% endfor %}
27 {% else %}
28         - "lxd:nodes/0"
29         - "lxd:nodes/0"
30         - "lxd:nodes/0"
31 {% endif %}
32 {% endif %}
33     ceph-osd:
34       charm: "./{{ ubuntu.release }}/ceph-osd"
35 {% if os.hyperconverged %}
36 {% if opnfv.units >= 3 %}
37       num_units: {{ unit_ceph_qty() }}
38 {% else %}
39       num_units: {{ opnfv.units }}
40 {% endif %}
41 {% else %}
42       num_units: 3
43 {% endif %}
44 {% if os.service.bindings %}
45       bindings:
46         "": *oam-space
47         public: *ceph-public-space
48         cluster: *ceph-cluster-space
49 {% endif %}
50       options:
51         osd-devices: *osd-devices
52         osd-journal: *osd-journal
53         osd-reformat: 'yes'
54         source: *openstack-origin
55 {% if os.network.ipv6 %}
56         prefer-ipv6: {{ os.network.ipv6 }}
57 {% endif %}
58       to:
59 {% if os.hyperconverged %}
60 {% if opnfv.units >= 3 %}
61 {% for unit_id in range(0, 3) %}
62         - "nodes/{{ unit_id }}"
63 {% endfor %}
64 {% else %}
65  {% for unit_id in range(0, opnfv.units) %}
66          - "nodes/{{ unit_id }}"
67  {% endfor %}
68 {% endif %}
69 {% else %}
70 {% if os.ha.mode == 'ha' %}
71 {% for unit_id in range(0, 3) %}
72         - "nodes/{{ unit_id }}"
73 {% endfor %}
74 {% else %}
75         - "nodes/0"
76         - "nodes-compute/0"
77         - "nodes-compute/1"
78 {% endif %}
79 {% endif %}
80     ceph-radosgw:
81       charm: "./{{ ubuntu.release }}/ceph-radosgw"
82       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
83 {% if os.service.bindings %}
84       constraints: *ceph-access-constr
85       bindings:
86         "": *oam-space
87         public: *public-space
88         admin: *admin-space
89         internal: *internal-space
90         mon: *ceph-public-space
91 {% endif %}
92       options:
93         region: *openstack-region
94         operator-roles: "Member,admin,SwiftOperator"
95         source: *openstack-origin
96 {% if os.network.ipv6 %}
97         prefer-ipv6: {{ os.network.ipv6 }}
98 {% endif %}
99 {% if opnfv.storage_dict.ceph is defined %}
100         ceph-osd-replication-count: {{ unit_ceph_qty() }}
101 {% endif %}
102       to:
103 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
104         - "lxd:nodes/{{ unit_id }}"
105 {% endfor %}
106 {% endif %}