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