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: Ic7eeccc651d8b9f8c7884e6cfc765c3d4adb650c
Closes-Bug: #1755102
(cherry picked from commit 75732ff4e3
)
This commit is contained in:
parent
46fc57c88f
commit
288c484415
|
@ -20,6 +20,7 @@ class murano::db::sync {
|
|||
Anchor['murano::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['murano::dbsync::end'],
|
||||
tag => 'openstack-db',
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ class murano::db::sync_cfapi {
|
|||
Anchor['murano::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['murano::dbsync::end'],
|
||||
tag => 'openstack-db',
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
features:
|
||||
- Add openstack-db tag to Exec that run db-sync.
|
|
@ -15,6 +15,7 @@ describe 'murano::db::sync_cfapi' do
|
|||
'Anchor[murano::config::end]',
|
||||
'Anchor[murano::dbsync::begin]'],
|
||||
:notify => 'Anchor[murano::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ describe 'murano::db::sync' do
|
|||
'Anchor[murano::config::end]',
|
||||
'Anchor[murano::dbsync::begin]'],
|
||||
:notify => 'Anchor[murano::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue