From 9eeada1608433801aeb5e4fb93fb3dcadb17333e Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:05 +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: Ic1de9ab495c83ae3300c5597dfa527d3b7ab7168 Closes-Bug: #1755102 (cherry picked from commit ff2403fd22f698bf5e80294faab94c5cb8502b5d) --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-afedb8332112f9ef.yaml | 3 +++ spec/classes/barbican_db_sync_spec.rb | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-afedb8332112f9ef.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index cf579807..e53578e9 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -28,6 +28,7 @@ class barbican::db::sync( Anchor['barbican::dbsync::begin'] ], notify => Anchor['barbican::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-afedb8332112f9ef.yaml b/releasenotes/notes/openstack_db_tag-afedb8332112f9ef.yaml new file mode 100644 index 00000000..4872e117 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-afedb8332112f9ef.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/barbican_db_sync_spec.rb b/spec/classes/barbican_db_sync_spec.rb index 668af3a1..04f88239 100644 --- a/spec/classes/barbican_db_sync_spec.rb +++ b/spec/classes/barbican_db_sync_spec.rb @@ -17,6 +17,7 @@ describe 'barbican::db::sync' do 'Anchor[barbican::config::end]', 'Anchor[barbican::dbsync::begin]'], :notify => 'Anchor[barbican::dbsync::end]', + :tag => 'openstack-db', ) end @@ -40,6 +41,7 @@ describe 'barbican::db::sync' do 'Anchor[barbican::config::end]', 'Anchor[barbican::dbsync::begin]'], :notify => 'Anchor[barbican::dbsync::end]', + :tag => 'openstack-db', ) } end