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