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: Idfcbaa2d137c91a464fb5d49ae25fa348c67d642
Closes-Bug: #1755102
This commit is contained in:
ZhongShengping 2018-03-12 16:33:09 +08:00
parent 72abc575f6
commit fd3b9d6681
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

@ -17,6 +17,7 @@ describe 'octavia::db::sync' do
'Anchor[octavia::config::end]', 'Anchor[octavia::config::end]',
'Anchor[octavia::dbsync::begin]'], 'Anchor[octavia::dbsync::begin]'],
:notify => 'Anchor[octavia::dbsync::end]', :notify => 'Anchor[octavia::dbsync::end]',
:tag => 'openstack-db',
) )
end end
@ -40,6 +41,7 @@ describe 'octavia::db::sync' do
'Anchor[octavia::config::end]', 'Anchor[octavia::config::end]',
'Anchor[octavia::dbsync::begin]'], 'Anchor[octavia::dbsync::begin]'],
:notify => 'Anchor[octavia::dbsync::end]', :notify => 'Anchor[octavia::dbsync::end]',
:tag => 'openstack-db',
) )
} }
end end