New scripts for configs generation, based on jinja2
[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     nodes:
13       charm: "cs:{{ ubuntu.release }}/ubuntu"
14       num_units: {{ opnfv.units }}
15     ntp:
16       charm: "local:{{ ubuntu.release }}/ntp"
17 {% if os.network.controller == 'ocl' %}
18       options:
19         source: "0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org"
20         auto_peers: false
21 {% endif %}
22 {% include 'mysql.yaml' %}
23 {% include 'ceilometer.yaml' %}
24 {% include 'ceph.yaml' %}
25 {% include 'cinder.yaml' %}
26 {% include 'glance.yaml' %}
27 {% include 'opnfv-promise.yaml' %}
28 {% include 'congress.yaml' %}
29 {% include 'keystone.yaml' %}
30 {% include 'nova-cloud-controller.yaml' %}
31 {% include 'nova-compute.yaml' %}
32 {% include 'openstack-dashboard.yaml' %}
33 {% include 'rabbitmq.yaml' %}
34 {% include 'heat.yaml' %}
35 {% include 'neutron-api.yaml' %}
36 {% include 'neutron-gateway.yaml' %}
37 {% include 'aodh.yaml' %}
38 {% if os.network.controller == 'odl' %}
39 {% include 'odl.yaml' %}
40 {% elif os.network.controller == 'onos' %}
41 {% include 'onos.yaml' %}
42 {% elif os.network.controller == 'ocl' %}
43 {% include 'oclphase1.yaml' %}
44 {% endif %}
45 {% if os.ha.mode == 'ha' %}
46 {% include 'haclusters.yaml' %}
47 {% endif %}
48
49   relations:
50     - [ 'ntp:juju-info', 'nodes:juju-info' ]
51 {% if os.ha.mode == 'ha' %}
52 {% include 'harelations.yaml' %}
53 {% endif %}
54
55 openstack-phase2:
56   inherits: openstack-phase1
57   relations:
58 {% include 'relations.yaml' %}
59   services:
60 {% include 'subordinate.yaml' %}