Fix gnocchi multi-node when storage_driver is file

When gnocchi_storage_driver is file, run the db sync on all nodes.
But if gnocchi_storage_driver is other than file, run only on first node.

Closes-Bug: #1915618
Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6
This commit is contained in:
Jonathan Herlin 2021-11-10 17:18:16 +01:00 committed by Dmitriy Rabotyagov
parent 9e409492ff
commit 09d669b9f2
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@
# Similarly, when using Ceph, must occur after Ceph setup.
- import_tasks: gnocchi_db_sync.yml
when:
- _gnocchi_is_first_play_host
- (gnocchi_storage_driver == 'file') | ternary(True, _gnocchi_is_first_play_host)
- not gnocchi_identity_only | bool
tags:
- gnocchi-config