Add 'openstack-db' tag to db-sync Exec resource

In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I7baded10a128532f7267903fa8d14f576cd9f47a
Closes-Bug: #1755102
(cherry picked from commit 90863dce61)
This commit is contained in:
ZhongShengping 2018-03-12 16:33:10 +08:00 committed by zhongshengping
parent 6248c96ada
commit f6c18d5653
3 changed files with 5 additions and 0 deletions

View File

@ -34,5 +34,6 @@ class trove::db::sync {
Anchor['trove::dbsync::begin']
],
notify => Anchor['trove::dbsync::end'],
tag => 'openstack-db',
}
}

View File

@ -0,0 +1,3 @@
---
features:
- Add openstack-db tag to Exec that run db-sync.

View File

@ -19,6 +19,7 @@ describe 'trove::db::sync' do
'Anchor[trove::config::end]',
'Anchor[trove::dbsync::begin]'],
:notify => 'Anchor[trove::dbsync::end]',
:tag => 'openstack-db',
)
end