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