adjusting the timeout while reading status.
[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         "": internal-api
8 {% if opnfv.spaces_dict.storage is defined %}
9         cluster: storage-cluster
10 {% endif %}
11 {% endif %}
12       options:
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 }}"
20 {% endif %}
21 {% if os.network.ipv6 %}
22         prefer-ipv6: {{ os.network.ipv6 }}
23 {% endif %}
24       to:
25 {% if os.hyperconverged %}
26 {% for unit_id in to_select(unit_ceph_qty()) %}
27         - "lxd:nodes/{{ unit_id }}"
28 {% endfor %}
29 {% else %}
30 {% if os.ha.mode == 'ha' %}
31 {% for unit_id in range(0, 3) %}
32         - "lxd:nodes/{{ unit_id }}"
33 {% endfor %}
34 {% else %}
35         - "lxd:nodes/0"
36         - "lxd:nodes/1"
37         - "lxd:nodes/2"
38 {% endif %}
39 {% endif %}
40     ceph-osd:
41       charm: "./{{ ubuntu.release }}/ceph-osd"
42 {% if os.hyperconverged %}
43 {% if opnfv.units >= 3 %}
44       num_units: {{ unit_ceph_qty() }}
45 {% else %}
46       num_units: {{ opnfv.units }}
47 {% endif %}
48 {% else %}
49       num_units: 3
50 {% endif %}
51 {% if os.service.bindings %}
52       bindings:
53         "": internal-api
54 {% if opnfv.spaces_dict.storage is defined %}
55         cluster: storage-cluster
56 {% endif %}
57 {% endif %}
58       options:
59 {% if os.lxd %}
60         osd-devices: /srv/ceph-osd
61 {% else %}
62         osd-devices: {{ opnfv.storage_dict.ceph.disk }}
63 {% endif %}
64         osd-reformat: 'yes'
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 }}"
69 {% endif %}
70 {% if os.network.ipv6 %}
71         prefer-ipv6: {{ os.network.ipv6 }}
72 {% endif %}
73       to:
74 {% if os.hyperconverged %}
75 {% if opnfv.units >= 3 %}
76 {% for unit_id in range(0, 3) %}
77         - "nodes/{{ unit_id }}"
78 {% endfor %}
79 {% else %}
80  {% for unit_id in range(0, opnfv.units) %}
81          - "nodes/{{ unit_id }}"
82  {% endfor %}
83 {% endif %}
84 {% else %}
85 {% if os.ha.mode == 'ha' %}
86 {% for unit_id in range(0, 3) %}
87         - "nodes/{{ unit_id }}"
88 {% endfor %}
89 {% else %}
90         - "nodes/0"
91         - "nodes-compute/0"
92         - "nodes-compute/1"
93 {% endif %}
94 {% endif %}
95     ceph-radosgw:
96       charm: "./{{ ubuntu.release }}/ceph-radosgw"
97       num_units: {{ unit_qty() if os.beta.hacluster_ceph_radosgw else 1 }}
98 {% if os.service.bindings %}
99       bindings:
100         "": internal-api
101         internal: internal-api
102         admin: internal-api
103 {% if opnfv.spaces_dict.public is defined %}
104         public: public-api
105 {% else %}
106         public: internal-api
107 {% endif %}
108 {% endif %}
109       options:
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 }}"
116 {% endif %}
117 {% if os.network.ipv6 %}
118         prefer-ipv6: {{ os.network.ipv6 }}
119 {% endif %}
120 {% if opnfv.storage_dict.ceph is defined %}
121         ceph-osd-replication-count: {{ unit_ceph_qty() }}
122 {% endif %}
123       to:
124 {% for unit_id in to_select(unit_qty() if os.beta.hacluster_ceph_radosgw else 1) %}
125         - "lxd:nodes/{{ unit_id }}"
126 {% endfor %}
127 {% endif %}