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: I2c215acfbfda9b6a8db88f4ab37db8ef911ea17e
Closes-Bug: #1755102
(cherry picked from commit 51dd0b90ef
)
This commit is contained in:
parent
468d92d073
commit
c5fb34cc98
|
@ -37,5 +37,6 @@ class neutron::db::sync(
|
|||
Anchor['neutron::dbsync::begin']
|
||||
],
|
||||
notify => Anchor['neutron::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 'neutron::db::sync' do
|
|||
'Anchor[neutron::config::end]',
|
||||
'Anchor[neutron::dbsync::begin]'],
|
||||
:notify => 'Anchor[neutron::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -40,6 +41,7 @@ describe 'neutron::db::sync' do
|
|||
'Anchor[neutron::config::end]',
|
||||
'Anchor[neutron::dbsync::begin]'],
|
||||
:notify => 'Anchor[neutron::dbsync::end]',
|
||||
:tag => 'openstack-db',
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue