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: I632ec1cfcbe6085e27fa215d5d2efdeb625b736a
Closes-Bug: #1755102
(cherry picked from commit f9dd363bc2
)
This commit is contained in:
parent
17cb127f2b
commit
cd303e7e3b
|
@ -38,6 +38,7 @@ class magnum::db::sync(
|
|||
Anchor['magnum::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['magnum::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 'magnum::db::sync' do
|
|||
'Anchor[magnum::config::end]',
|
||||
'Anchor[magnum::dbsync::begin]'],
|
||||
:notify => 'Anchor[magnum::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -40,6 +41,7 @@ describe 'magnum::db::sync' do
|
|||
'Anchor[magnum::config::end]',
|
||||
'Anchor[magnum::dbsync::begin]'],
|
||||
:notify => 'Anchor[magnum::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue