From d2891b9670d41c97c3f8d31e0e2971c72167616d Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:11 +0800 Subject: [PATCH] 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: I468f796bc344f91510e977dd07cfd563174c66dd Closes-Bug: #1755102 --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-8af96261543c1429.yaml | 3 +++ spec/classes/zaqar_db_sync_spec.rb | 1 + 3 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-8af96261543c1429.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 947111b..72002e8 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -19,6 +19,7 @@ class zaqar::db::sync { Anchor['zaqar::dbsync::begin'] ], notify => Anchor['zaqar::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-8af96261543c1429.yaml b/releasenotes/notes/openstack_db_tag-8af96261543c1429.yaml new file mode 100644 index 0000000..4872e11 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-8af96261543c1429.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/zaqar_db_sync_spec.rb b/spec/classes/zaqar_db_sync_spec.rb index 60b740d..c27ff40 100644 --- a/spec/classes/zaqar_db_sync_spec.rb +++ b/spec/classes/zaqar_db_sync_spec.rb @@ -19,6 +19,7 @@ describe 'zaqar::db::sync' do 'Anchor[zaqar::config::end]', 'Anchor[zaqar::dbsync::begin]'], :notify => 'Anchor[zaqar::dbsync::end]', + :tag => 'openstack-db', ) end