added ssl support based on default.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / bundle.yaml
1 # vim: set ts=2 et:
2   series: {{ ubuntu.release }}
3   variables:
4 {% include 'spaces.yaml' %}
5   services:
6 {% if os.hyperconverged %}
7     nodes:
8       charm: "cs:{{ ubuntu.release }}/ubuntu"
9       num_units: {{ opnfv.units }}
10 {% else %}
11     nodes:
12       charm: "cs:{{ ubuntu.release }}/ubuntu"
13 {% if os.ha.mode == 'ha' %}
14       num_units: 3
15 {% else %}
16       num_units: 1
17 {% endif %}
18
19     nodes-compute:
20       charm: "cs:{{ ubuntu.release }}/ubuntu"
21 {% if os.ha.mode == 'ha' %}
22       num_units: {{ opnfv.units - 3 }}
23 {% else %}
24       num_units: {{ opnfv.units - 1 }}
25 {% endif %}
26 {% endif %}
27     ntp:
28       charm: "./{{ ubuntu.release }}/ntp"
29 {% if os.network.controller == 'ocl' %}
30       options:
31         source: "0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org"
32         auto_peers: false
33 {% endif %}
34 {% include 'mysql.yaml' %}
35 {% if opnfv.storage_dict.scaleio is defined %}
36 {% include 'scaleio.yaml' %}
37 {% else %}
38 {% include 'ceph.yaml' %}
39 {% endif %}
40 {% if opnfv.storage_dict.ceph is defined %}
41 {% include 'cinder.yaml' %}
42 {% include 'glance.yaml' %}
43 {% endif %}
44 {% if os.service.promise %}
45 {% include 'opnfv-promise.yaml' %}
46 {% endif %}
47 {% if os.service.congress %}
48 {% include 'congress.yaml' %}
49 {% endif %}
50 {% if os.service.openbaton %}
51 {% include 'openbaton.yaml' %}
52 {% endif %}
53 {% include 'keystone.yaml' %}
54 {% include 'nova-cloud-controller.yaml' %}
55 {% include 'nova-compute.yaml' %}
56 {% include 'openstack-dashboard.yaml' %}
57 {% include 'rabbitmq.yaml' %}
58 {% include 'neutron-api.yaml' %}
59 {% include 'heat.yaml' %}
60 {% include 'designate.yaml' %}
61 {% if os.network.controller != 'ocl' %}
62 {% include 'neutron-gateway.yaml' %}
63 {% include 'ceilometer.yaml' %}
64 {% endif %}
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 {% include 'subordinate.yaml' %}
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 {% include 'relations.yaml' %}