848eb535a4
Glance (in ussuri) uses policy-in-code, and so that policy.json file doesn't ship with the package. This means that the charm can't rely on the file existing ussuri onwards. This patchset changes the way the charm uses policy.json by switching it to a charm determined policy.yaml file (preferred format) with the only 3 options that the charm determines to enforce. Also add yaml vars to focal-ussuri bundle This brings it into line with the other charms that are part of the the enable-focal topic. This makes it easier to add a new bundle just by changing a couple of variables. Closes-Bug: #1872996 Change-Id: I47f19272a4e0af3781843608b76304ce8ba1e2b8
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
variables:
|
|
openstack-origin: &openstack-origin distro
|
|
|
|
series: focal
|
|
|
|
comment:
|
|
- 'machines section to decide order of deployment. database sooner = faster'
|
|
|
|
machines:
|
|
'0':
|
|
constraints: mem=3072M
|
|
'1':
|
|
constraints: mem=3072M
|
|
'2':
|
|
constraints: mem=3072M
|
|
'3':
|
|
'4':
|
|
|
|
applications:
|
|
|
|
glance-mysql-router:
|
|
charm: cs:~openstack-charmers-next/mysql-router
|
|
keystone-mysql-router:
|
|
charm: cs:~openstack-charmers-next/mysql-router
|
|
|
|
mysql-innodb-cluster:
|
|
charm: cs:~openstack-charmers-next/mysql-innodb-cluster
|
|
num_units: 3
|
|
options:
|
|
source: *openstack-origin
|
|
to:
|
|
- '0'
|
|
- '1'
|
|
- '2'
|
|
|
|
keystone:
|
|
charm: cs:~openstack-charmers-next/keystone
|
|
num_units: 1
|
|
options:
|
|
openstack-origin: *openstack-origin
|
|
to:
|
|
- '3'
|
|
|
|
glance:
|
|
charm: ../../../glance
|
|
num_units: 1
|
|
options:
|
|
openstack-origin: *openstack-origin
|
|
to:
|
|
- '4'
|
|
|
|
relations:
|
|
|
|
- - "keystone:shared-db"
|
|
- "keystone-mysql-router:shared-db"
|
|
- - "glance:shared-db"
|
|
- "glance-mysql-router:shared-db"
|
|
- - "glance:identity-service"
|
|
- "keystone:identity-service"
|
|
- - "glance-mysql-router:db-router"
|
|
- "mysql-innodb-cluster:db-router"
|
|
- - "keystone-mysql-router:db-router"
|
|
- "mysql-innodb-cluster:db-router"
|