modified to enable cpu pinning anf ceph.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / nova-compute.yaml
1     nova-compute:
2       charm: "./{{ 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 os.beta.public_api %}
18         use-internal-endpoints: true
19 {% endif %}
20 {% if os.network.ipv6 %}
21         prefer-ipv6: {{ os.network.ipv6 }}
22 {% endif %}
23 {% if opnfv.storage_dict.ceph is defined %}
24         ceph-osd-replication-count: {{ unit_ceph_qty() }}
25 {% endif %}
26         hugepages: "2048"
27 {% endif %}
28 {% if os.beta.cpu_pin %}
29         vcpu-pin-set: "{{ os.beta.cpu_pin_set }}"
30 {% endif %}
31 {% if os.lxd %}
32         virt-type: lxd
33 {% endif %}
34       to:
35 {% if os.hyperconverged %}
36 {% for unit_id in range(1, opnfv.units) %}
37         - "nodes/{{ unit_id }}"
38 {% endfor %}
39 {% else %}
40 {% if os.ha.mode == 'ha' %}
41 {% for unit_id in range(0, opnfv.units - 3) %}
42         - "nodes-compute/{{ unit_id }}"
43 {% endfor %}
44 {% else %}
45 {% for unit_id in range(0, opnfv.units - 1) %}
46         - "nodes-compute/{{ unit_id }}"
47 {% endfor %}
48 {% endif %}
49 {% endif %}