From 48330519caa17e40dd12d0fc9cdf3270e43d8a1b Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:07 +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: I63198ad06c1ce0ed4e6580582b269fe69842fed8 Closes-Bug: #1755102 (cherry picked from commit 74561c32007ee4a4cfd56c687e788f704aeb80d8) --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-bdc29046cc947ea5.yaml | 3 +++ spec/classes/ec2api_db_sync_spec.rb | 1 + 3 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-bdc29046cc947ea5.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index b5cdd38..7545b96 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -34,6 +34,7 @@ class ec2api::db::sync ( Anchor['ec2api::dbsync::begin'] ], notify => Anchor['ec2api::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-bdc29046cc947ea5.yaml b/releasenotes/notes/openstack_db_tag-bdc29046cc947ea5.yaml new file mode 100644 index 0000000..4872e11 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-bdc29046cc947ea5.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/ec2api_db_sync_spec.rb b/spec/classes/ec2api_db_sync_spec.rb index 7c02ccb..a8ed62c 100644 --- a/spec/classes/ec2api_db_sync_spec.rb +++ b/spec/classes/ec2api_db_sync_spec.rb @@ -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 }