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: Ia87f89e0c6d01400548623d9b67641e72673309c
Closes-Bug: #1755102
(cherry picked from commit 9e31a4071d)
This commit is contained in:
ZhongShengping 2018-03-12 16:33:06 +08:00 committed by zhongshengping
parent 9400988142
commit 641e0368c5
3 changed files with 6 additions and 0 deletions

View File

@ -30,5 +30,6 @@ class cinder::db::sync(
Anchor['cinder::dbsync::begin']
],
notify => Anchor['cinder::dbsync::end'],
tag => 'openstack-db',
}
}

View File

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

View File

@ -17,6 +17,7 @@ describe 'cinder::db::sync' do
'Anchor[cinder::config::end]',
'Anchor[cinder::dbsync::begin]'],
:notify => 'Anchor[cinder::dbsync::end]',
:tag => 'openstack-db',
)
end
@ -40,6 +41,7 @@ describe 'cinder::db::sync' do
'Anchor[cinder::config::end]',
'Anchor[cinder::dbsync::begin]'],
:notify => 'Anchor[cinder::dbsync::end]',
:tag => 'openstack-db',
)
}
end