fetch the correct ceilometer.
[joid.git] / ci / config_tpl / bundle_tpl / nova-compute.yaml
1     nova-compute:
2       charm: "local:{{ ubuntu.release }}/nova-compute"
3 {% if os.hyperconverged %}
4       num_units: {{ opnfv.units - 1 }}
5 {% else %}
6 {% if os.ha.mode == 'ha' %}
7       num_units: {{ opnfv.units - 3 }}
8 {% else %}
9       num_units: {{ opnfv.units - 1 }}
10 {% endif %}
11 {% endif %}
12       options:
13         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
14         enable-live-migration: true
15         enable-resize: true
16         migration-auth-type: ssh
17 {% if opnfv.storage_dict.ceph is defined %}
18         ceph-osd-replication-count: {{ unit_ceph_qty() }}
19 {% endif %}
20 {% if os.beta.huge_pages %}
21         hugepages: "50%"
22 {% endif %}
23 {% if os.lxd %}
24         virt-type: lxd
25 {% endif %}
26       to:
27 {% if os.hyperconverged %}
28 {% for unit_id in range(1, opnfv.units) %}
29         - "nodes={{ unit_id }}"
30 {% endfor %}
31 {% else %}
32 {% if os.ha.mode == 'ha' %}
33 {% for unit_id in range(0, opnfv.units - 3) %}
34         - "nodes-compute={{ unit_id }}"
35 {% endfor %}
36 {% else %}
37 {% for unit_id in range(0, opnfv.units - 1) %}
38         - "nodes-compute={{ unit_id }}"
39 {% endfor %}
40 {% endif %}
41 {% endif %}