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: Ic1de9ab495c83ae3300c5597dfa527d3b7ab7168
Closes-Bug: #1755102
(cherry picked from commit ff2403fd22
)
This commit is contained in:
parent
8dc9fcf88d
commit
3b7563d2d9
|
@ -28,6 +28,7 @@ class barbican::db::sync(
|
|||
Anchor['barbican::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['barbican::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 'barbican::db::sync' do
|
|||
'Anchor[barbican::config::end]',
|
||||
'Anchor[barbican::dbsync::begin]'],
|
||||
:notify => 'Anchor[barbican::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -40,6 +41,7 @@ describe 'barbican::db::sync' do
|
|||
'Anchor[barbican::config::end]',
|
||||
'Anchor[barbican::dbsync::begin]'],
|
||||
:notify => 'Anchor[barbican::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue