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: Ic7eeccc651d8b9f8c7884e6cfc765c3d4adb650c
Closes-Bug: #1755102
(cherry picked from commit 75732ff4e3)
This commit is contained in:
ZhongShengping 2018-03-12 16:33:09 +08:00 committed by zhongshengping
parent 46fc57c88f
commit 288c484415
5 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class murano::db::sync {
Anchor['murano::dbsync::begin'] Anchor['murano::dbsync::begin']
], ],
notify => Anchor['murano::dbsync::end'], notify => Anchor['murano::dbsync::end'],
tag => 'openstack-db',
} }
} }

View File

@ -20,6 +20,7 @@ class murano::db::sync_cfapi {
Anchor['murano::dbsync::begin'] Anchor['murano::dbsync::begin']
], ],
notify => Anchor['murano::dbsync::end'], notify => Anchor['murano::dbsync::end'],
tag => 'openstack-db',
} }
} }

View File

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

View File

@ -15,6 +15,7 @@ describe 'murano::db::sync_cfapi' do
'Anchor[murano::config::end]', 'Anchor[murano::config::end]',
'Anchor[murano::dbsync::begin]'], 'Anchor[murano::dbsync::begin]'],
:notify => 'Anchor[murano::dbsync::end]', :notify => 'Anchor[murano::dbsync::end]',
:tag => 'openstack-db',
) )
end end

View File

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