fe3a7224e5fbb323480590fe6011116d2fb08ed0
[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       bindings:
13         "": *oam-space
14         internal: *internal-space
15       options:
16         openstack-origin: *openstack-origin
17 {% if os.git_repo.origin_git %}
18         openstack-origin-git: "{{ os.git_repo.branch }}"
19 {% endif %}
20         enable-live-migration: True
21         enable-resize: True
22         migration-auth-type: ssh
23         use-internal-endpoints: True
24 {% if os.network.ipv6 %}
25         prefer-ipv6: {{ os.network.ipv6 }}
26 {% endif %}
27 {% if opnfv.storage_dict.ceph is defined %}
28         ceph-osd-replication-count: {{ unit_ceph_qty() }}
29 {% endif %}
30 {% if os.beta.huge_pages %}
31         hugepages: "2048"
32 {% endif %}
33 {% if os.beta.cpu_pin %}
34         vcpu-pin-set: "{{ os.beta.cpu_pin_set }}"
35 {% endif %}
36 {% if os.lxd %}
37         virt-type: lxd
38 {% else %}
39         virt-type: kvm
40 {% endif %}
41       to:
42 {% if os.hyperconverged %}
43 {% for unit_id in range(1, opnfv.units) %}
44         - "nodes/{{ unit_id }}"
45 {% endfor %}
46 {% else %}
47 {% if os.ha.mode == 'ha' %}
48 {% for unit_id in range(0, opnfv.units - 3) %}
49         - "nodes-compute/{{ unit_id }}"
50 {% endfor %}
51 {% else %}
52 {% for unit_id in range(0, opnfv.units - 1) %}
53         - "nodes-compute/{{ unit_id }}"
54 {% endfor %}
55 {% endif %}
56 {% endif %}