removing the public gateway addition code as it was added because
[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 {% if os.network.ipv6 %}
24         prefer-ipv6: {{ os.network.ipv6 }}
25 {% endif %}
26 {% if opnfv.storage_dict.ceph is defined %}
27         ceph-osd-replication-count: {{ unit_ceph_qty() }}
28 {% endif %}
29 {% if os.beta.huge_pages %}
30         hugepages: "2048"
31 {% endif %}
32 {% if os.beta.cpu_pin %}
33         vcpu-pin-set: "{{ os.beta.cpu_pin_set }}"
34 {% endif %}
35 {% if os.lxd %}
36         virt-type: lxd
37 {% else %}
38         virt-type: kvm
39 {% endif %}
40       to:
41 {% if os.hyperconverged %}
42 {% for unit_id in range(1, opnfv.units) %}
43         - "nodes/{{ unit_id }}"
44 {% endfor %}
45 {% else %}
46 {% if os.ha.mode == 'ha' %}
47 {% for unit_id in range(0, opnfv.units - 3) %}
48         - "nodes-compute/{{ unit_id }}"
49 {% endfor %}
50 {% else %}
51 {% for unit_id in range(0, opnfv.units - 1) %}
52         - "nodes-compute/{{ unit_id }}"
53 {% endfor %}
54 {% endif %}
55 {% endif %}