Toshiaki Takahashi 53b5d03f7e Restore Ceilometer installation
This reverts [1], with some complementary bits and pieces.
Historically it'd been deactivated twice on master branch.
See also [3], which was reverted in [2]. Note this reverts
[4] as well.

[1] https://review.opendev.org/c/openstack/tacker/+/757537
[2] https://review.opendev.org/c/openstack/tacker/+/754882
[3] https://review.opendev.org/c/openstack/tacker/+/751965
[4] https://review.opendev.org/c/openstack/tacker/+/760275

Change-Id: I9c9cc65772b2f88c5ed7ef8178b79aa5c7011f29
2021-01-14 15:05:24 +09:00

19 lines
760 B
YAML

# Currently the plugins which implicitly require db cli to be
# pre-installed when the database is remote (i.e., MYSQL_HOST
# != host-where-it-is-enabled) is only ceilometer. So it'd be
# more accurate to set the outermost 'when' condition like:
#
# when:
# - devstack_plugins['ceilometer'] | default(false)
# - devstack_localrc['DATABASE_TYPE'] is defined
#
# Either is fine so let's dispense with it to keep it simple.
- block:
- name: install mysql client if needed
include_tasks: mysql.yaml
when: devstack_localrc['DATABASE_TYPE'] == 'mysql'
- name: install postgresql client if needed
include_tasks: postgresql.yaml
when: devstack_localrc['DATABASE_TYPE'] == 'postgresql'
when: devstack_localrc['DATABASE_TYPE'] is defined