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: I41a7eb38176781bffc16c6886a3de9f855036fbc
Closes-Bug: #1755102
(cherry picked from commit 15dc6f8d4e
)
This commit is contained in:
parent
ba3b35d58a
commit
e254d902b1
|
@ -28,6 +28,7 @@ class watcher::db::create_schema(
|
||||||
Anchor['watcher::db::create_schema::begin']
|
Anchor['watcher::db::create_schema::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['watcher::db::create_schema::end'],
|
notify => Anchor['watcher::db::create_schema::end'],
|
||||||
|
tag => 'openstack-db',
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add openstack-db tag to Exec that run db-sync.
|
|
@ -19,6 +19,7 @@ describe 'watcher::db::create_schema' do
|
||||||
'Anchor[watcher::db::create_schema::begin]'
|
'Anchor[watcher::db::create_schema::begin]'
|
||||||
],
|
],
|
||||||
:notify => 'Anchor[watcher::db::create_schema::end]',
|
:notify => 'Anchor[watcher::db::create_schema::end]',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -44,6 +45,7 @@ describe 'watcher::db::create_schema' do
|
||||||
'Anchor[watcher::db::create_schema::begin]'
|
'Anchor[watcher::db::create_schema::begin]'
|
||||||
],
|
],
|
||||||
:notify => 'Anchor[watcher::db::create_schema::end]',
|
:notify => 'Anchor[watcher::db::create_schema::end]',
|
||||||
|
:tag => 'openstack-db',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue