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: I0a7d0859d2052e5a8b4805e82e4370057bedf0b2
Closes-Bug: #1755102
(cherry picked from commit e3b9d19cbf
)
This commit is contained in:
parent
bb80a3909d
commit
5c8366bb31
|
@ -30,6 +30,7 @@ class glance::db::sync(
|
|||
Anchor['glance::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['glance::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 'glance::db::sync' do
|
|||
'Anchor[glance::config::end]',
|
||||
'Anchor[glance::dbsync::begin]'],
|
||||
:notify => 'Anchor[glance::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -39,6 +40,7 @@ describe 'glance::db::sync' do
|
|||
'Anchor[glance::config::end]',
|
||||
'Anchor[glance::dbsync::begin]'],
|
||||
:notify => 'Anchor[glance::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue