From eafc8877c8c6bfeb9256a2feca4936a0f5efa663 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:10 +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: If20095a8a38b4f8dfccb9b75eb2f02f5d6d6e57b Closes-Bug: #1755102 --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml | 3 +++ spec/classes/panko_db_sync_spec.rb | 1 + 3 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 601d4c9..ffa48c2 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -28,6 +28,7 @@ class panko::db::sync( Anchor['panko::dbsync::begin'] ], notify => Anchor['panko::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml b/releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml new file mode 100644 index 0000000..4872e11 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/panko_db_sync_spec.rb b/spec/classes/panko_db_sync_spec.rb index 9393b17..f2896df 100644 --- a/spec/classes/panko_db_sync_spec.rb +++ b/spec/classes/panko_db_sync_spec.rb @@ -19,6 +19,7 @@ describe 'panko::db::sync' do 'Anchor[panko::config::end]', 'Anchor[panko::dbsync::begin]'], :notify => 'Anchor[panko::dbsync::end]', + :tag => 'openstack-db', ) end