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: I63198ad06c1ce0ed4e6580582b269fe69842fed8
Closes-Bug: #1755102
This commit is contained in:
ZhongShengping 2018-03-12 16:33:07 +08:00
parent 358022b9e1
commit 74561c3200
3 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class ec2api::db::sync (
Anchor['ec2api::dbsync::begin']
],
notify => Anchor['ec2api::dbsync::end'],
tag => 'openstack-db',
}
}

View File

@ -0,0 +1,3 @@
---
features:
- Add openstack-db tag to Exec that run db-sync.

View File

@ -20,6 +20,7 @@ describe 'ec2api::db::sync' do
'Anchor[ec2api::dbsync::begin]'
],
:notify => 'Anchor[ec2api::dbsync::end]',
:tag => 'openstack-db',
}
it { is_expected.to compile.with_all_deps }