From d4113232558e9cb7a385a812e31453d36086b5ef 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: I8215df855b260b9421df121d136be2e77eab1346 Closes-Bug: #1755102 --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-987f513d508e7717.yaml | 3 +++ spec/classes/aodh_db_sync_spec.rb | 1 + 3 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-987f513d508e7717.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 09937ff3..7892ca99 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -25,6 +25,7 @@ class aodh::db::sync ( Anchor['aodh::dbsync::begin'] ], notify => Anchor['aodh::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-987f513d508e7717.yaml b/releasenotes/notes/openstack_db_tag-987f513d508e7717.yaml new file mode 100644 index 00000000..4872e117 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-987f513d508e7717.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/aodh_db_sync_spec.rb b/spec/classes/aodh_db_sync_spec.rb index d21c9be8..73c00a95 100644 --- a/spec/classes/aodh_db_sync_spec.rb +++ b/spec/classes/aodh_db_sync_spec.rb @@ -19,6 +19,7 @@ describe 'aodh::db::sync' do 'Anchor[aodh::config::end]', 'Anchor[aodh::dbsync::begin]'], :notify => 'Anchor[aodh::dbsync::end]', + :tag => 'openstack-db', ) end