488462fe0d89f914e81e77f11b12bc89042a8149
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / subordinate.yaml
1
2 {% if os.network.controller != 'ocl' %}
3     ceilometer-agent:
4       charm: ./{{ ubuntu.release }}/ceilometer-agent
5       options:
6         openstack-origin: *openstack-origin
7 {% endif %}
8 {% if opnfv.storage_dict.ceph is defined %}
9     cinder-ceph:
10       charm: ./{{ ubuntu.release }}/cinder-ceph
11       options:
12 {% if opnfv.storage_dict.ceph is defined %}
13         ceph-osd-replication-count: {{ unit_ceph_qty() }}
14 {% endif %}
15 {% endif %}
16 {% if os.network.controller == 'nosdn' %}
17 {% include 'neutron-ovs.yaml' %}
18 {% elif os.network.controller == 'odl' %}
19     neutron-api-odl:
20       charm: ./{{ ubuntu.release }}/neutron-api-odl
21       options:
22         overlay-network-type: 'vxlan'
23         security-groups: True
24     openvswitch-odl:
25       charm: ./{{ ubuntu.release }}/openvswitch-odl
26       options:
27 {% if opnfv.ext_port is defined  %}
28         provider_mappings: "physnet1:{{ opnfv.ext_port }}"
29 {% endif %}
30 {% if opnfv.spaces_dict.data is defined %}
31         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
32 {% else %}
33         os-data-network: {{ opnfv.spaces_dict.admin.cidr }}
34 {% endif %}
35 {% elif os.network.controller == 'onos' %}
36     neutron-api-onos:
37       charm: ./{{ ubuntu.release }}/neutron-api-onos
38       options:
39         overlay-network-type: 'vxlan'
40         security-groups: True
41     openvswitch-onos:
42       charm: ./{{ ubuntu.release }}/openvswitch-onos
43       options:
44 {% if opnfv.spaces_dict.data is defined %}
45         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
46 {% endif %}
47 {% if os.network.sfc %}
48         profile: onos-sfc
49 {% endif %}
50 {% endif %}
51 {% if os.lxd %}
52     lxd:
53       charm: ./{{ ubuntu.release }}/lxd
54       options:
55 {% if 'srv' not in opnfv.storage_dict.ceph.disk %}
56         block-devices: {{ opnfv.storage_dict.ceph.disk }}
57         overwrite: true
58         storage-type: zfs
59 {% endif %}
60 {% endif %}
61 {% if opnfv.storage_dict.scaleio is defined %}
62     scaleio-openstack:
63       charm: ./{{ ubuntu.release }}/scaleio-openstack
64       options:
65         protection-domains: 'pd1'
66 {% endif %}