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: Id9554154320aa7986f66119dac2f1f3174583616
Closes-Bug: #1755102
(cherry picked from commit 4f90fa0866)
This commit is contained in:
committed by
zhongshengping
parent
af2050dbd3
commit
4c33d93b65
@@ -28,5 +28,6 @@ class cloudkitty::db::sync(
|
|||||||
Anchor['cloudkitty::dbsync::begin']
|
Anchor['cloudkitty::dbsync::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['cloudkitty::dbsync::end'],
|
notify => Anchor['cloudkitty::dbsync::end'],
|
||||||
|
tag => 'openstack-db',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add openstack-db tag to Exec that run db-sync.
|
||||||
@@ -17,6 +17,7 @@ describe 'cloudkitty::db::sync' do
|
|||||||
'Anchor[cloudkitty::config::end]',
|
'Anchor[cloudkitty::config::end]',
|
||||||
'Anchor[cloudkitty::dbsync::begin]'],
|
'Anchor[cloudkitty::dbsync::begin]'],
|
||||||
:notify => 'Anchor[cloudkitty::dbsync::end]',
|
:notify => 'Anchor[cloudkitty::dbsync::end]',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user