move to master branch of charm for few bug fixes.
[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 {% if opnfv.storage_dict.ceph is defined %}
50 {% if os.service.promise %}
51 {% include 'opnfv-promise.yaml' %}
52 {% endif %}
53 {% if os.service.congress %}
54 {% include 'congress.yaml' %}
55 {% endif %}
56 {% endif %}
57 {% include 'keystone.yaml' %}
58 {% include 'nova-cloud-controller.yaml' %}
59 {% include 'nova-compute.yaml' %}
60 {% include 'openstack-dashboard.yaml' %}
61 {% include 'rabbitmq.yaml' %}
62 {% include 'heat.yaml' %}
63 {% include 'neutron-api.yaml' %}
64 {% include 'neutron-gateway.yaml' %}
65 {% include 'aodh.yaml' %}
66 {% if os.network.controller == 'odl' %}
67 {% include 'odl.yaml' %}
68 {% elif os.network.controller == 'onos' %}
69 {% include 'onos.yaml' %}
70 {% elif os.network.controller == 'ocl' %}
71 {% include 'oclphase1.yaml' %}
72 {% endif %}
73 {% if os.ha.mode == 'ha' %}
74 {% include 'haclusters.yaml' %}
75 {% endif %}
76
77
78 {% if os.hyperconverged %}
79   relations:
80     - [ 'ntp:juju-info', 'nodes:juju-info' ]
81 {% else %}
82   relations:
83     - [ 'ntp:juju-info', 'nodes:juju-info' ]
84     - [ 'ntp:juju-info', 'nodes-compute:juju-info' ]
85 {% endif %}
86
87 {% if os.ha.mode == 'ha' %}
88 {% include 'harelations.yaml' %}
89 {% endif %}
90
91 openstack-phase2:
92   inherits: openstack-phase1
93   relations:
94 {% include 'relations.yaml' %}
95   services:
96 {% include 'subordinate.yaml' %}