adding bionic support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / bundle.yaml
1 # vim: set ts=2 et:
2   series: {{ ubuntu.release }}
3   variables:
4 {% include 'spaces.yaml' %}
5   services:
6 {% if os.hyperconverged %}
7     nodes:
8       charm: "cs:{{ ubuntu.release }}/ubuntu"
9       num_units: {{ opnfv.units }}
10 {% else %}
11     nodes:
12       charm: "cs:{{ ubuntu.release }}/ubuntu"
13       series: {{ ubuntu.release }}
14 {% if os.ha.mode == 'ha' %}
15       num_units: 3
16 {% else %}
17       num_units: 1
18 {% endif %}
19
20     nodes-compute:
21       charm: "cs:{{ ubuntu.release }}/ubuntu"
22       series: {{ ubuntu.release }}
23 {% if os.ha.mode == 'ha' %}
24       num_units: {{ opnfv.units - 3 }}
25 {% else %}
26       num_units: {{ opnfv.units - 1 }}
27 {% endif %}
28 {% endif %}
29     ntp:
30       charm: "./{{ ubuntu.release }}/ntp"
31       series: {{ ubuntu.release }}
32 {% if os.network.controller == 'ocl' %}
33       options:
34         source: "0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org"
35         auto_peers: false
36 {% endif %}
37 {% include 'mysql.yaml' %}
38 {% if opnfv.storage_dict.scaleio is defined %}
39 {% include 'scaleio.yaml' %}
40 {% else %}
41 {% include 'ceph.yaml' %}
42 {% endif %}
43 {% if opnfv.storage_dict.ceph is defined %}
44 {% include 'cinder.yaml' %}
45 {% include 'glance.yaml' %}
46 {% endif %}
47 {% if os.service.promise %}
48 {% include 'opnfv-promise.yaml' %}
49 {% endif %}
50 {% if os.service.congress %}
51 {% include 'congress.yaml' %}
52 {% endif %}
53 {% if os.service.openbaton %}
54 {% include 'openbaton.yaml' %}
55 {% endif %}
56 {% include 'keystone.yaml' %}
57 {% include 'nova-cloud-controller.yaml' %}
58 {% include 'nova-compute.yaml' %}
59 {% include 'openstack-dashboard.yaml' %}
60 {% include 'rabbitmq.yaml' %}
61 {% include 'neutron-api.yaml' %}
62 {% include 'heat.yaml' %}
63 {% include 'designate.yaml' %}
64 {% if os.network.controller != 'ocl' %}
65 {% include 'neutron-gateway.yaml' %}
66 {% include 'ceilometer.yaml' %}
67 {% endif %}
68 {% include 'aodh.yaml' %}
69 {% if os.network.controller == 'odl' %}
70 {% include 'odl.yaml' %}
71 {% elif os.network.controller == 'onos' %}
72 {% include 'onos.yaml' %}
73 {% elif os.network.controller == 'ocl' %}
74 {% include 'oclphase1.yaml' %}
75 {% endif %}
76 {% if os.ha.mode == 'ha' %}
77 {% include 'haclusters.yaml' %}
78 {% endif %}
79 {% include 'subordinate.yaml' %}
80
81 {% if os.hyperconverged %}
82   relations:
83     - [ 'ntp:juju-info', 'nodes:juju-info' ]
84 {% else %}
85   relations:
86     - [ 'ntp:juju-info', 'nodes:juju-info' ]
87     - [ 'ntp:juju-info', 'nodes-compute:juju-info' ]
88 {% endif %}
89
90 {% if os.ha.mode == 'ha' %}
91 {% include 'harelations.yaml' %}
92 {% endif %}
93 {% include 'relations.yaml' %}