modfiied to support openbaton during the dpeloyment.
[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 {% if opnfv.storage_dict.ceph is defined %}
40 {% include 'cinder.yaml' %}
41 {% include 'glance.yaml' %}
42 {% endif %}
43 {% if os.service.promise %}
44 {% include 'opnfv-promise.yaml' %}
45 {% endif %}
46 {% if os.service.congress %}
47 {% include 'congress.yaml' %}
48 {% endif %}
49 {% if os.service.openbaton %}
50 {% include 'openbaton.yaml' %}
51 {% endif %}
52 {% include 'keystone.yaml' %}
53 {% include 'nova-cloud-controller.yaml' %}
54 {% include 'nova-compute.yaml' %}
55 {% include 'openstack-dashboard.yaml' %}
56 {% include 'rabbitmq.yaml' %}
57 {% include 'heat.yaml' %}
58 {% include 'neutron-api.yaml' %}
59 {% include 'neutron-gateway.yaml' %}
60 {% include 'aodh.yaml' %}
61 {% if os.network.controller == 'odl' %}
62 {% include 'odl.yaml' %}
63 {% elif os.network.controller == 'onos' %}
64 {% include 'onos.yaml' %}
65 {% elif os.network.controller == 'ocl' %}
66 {% include 'oclphase1.yaml' %}
67 {% endif %}
68 {% if os.ha.mode == 'ha' %}
69 {% include 'haclusters.yaml' %}
70 {% endif %}
71 {% include 'subordinate.yaml' %}
72
73 {% if os.hyperconverged %}
74   relations:
75     - [ 'ntp:juju-info', 'nodes:juju-info' ]
76 {% else %}
77   relations:
78     - [ 'ntp:juju-info', 'nodes:juju-info' ]
79     - [ 'ntp:juju-info', 'nodes-compute:juju-info' ]
80 {% endif %}
81
82 {% if os.ha.mode == 'ha' %}
83 {% include 'harelations.yaml' %}
84 {% endif %}
85 {% include 'relations.yaml' %}
86 {% if os.mano.mode == 'ha' %}
87 {% include 'harelations.yaml' %}
88 {% endif %}