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: Ie7026a1b3f62b68a0e971f2ed3a683226eb657ef
Closes-Bug: #1755102
(cherry picked from commit 8fab8ebfe4
)
This commit is contained in:
parent
4f18b59b7e
commit
38e2efa801
|
@ -33,6 +33,7 @@ class tacker::db::sync(
|
|||
Anchor['tacker::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['tacker::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 'tacker::db::sync' do
|
|||
'Anchor[tacker::config::end]',
|
||||
'Anchor[tacker::dbsync::begin]'],
|
||||
:notify => 'Anchor[tacker::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -40,6 +41,7 @@ describe 'tacker::db::sync' do
|
|||
'Anchor[tacker::config::end]',
|
||||
'Anchor[tacker::dbsync::begin]'],
|
||||
:notify => 'Anchor[tacker::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue