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