From 75732ff4e3ad36935c090a9440e118e48115bcb6 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:09 +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: Ic7eeccc651d8b9f8c7884e6cfc765c3d4adb650c Closes-Bug: #1755102 --- manifests/db/sync.pp | 1 + manifests/db/sync_cfapi.pp | 1 + releasenotes/notes/openstack_db_tag-809258d24c1d3b46.yaml | 3 +++ spec/classes/murano_db_sync_cfapi_spec.rb | 1 + spec/classes/murano_db_sync_spec.rb | 1 + 5 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-809258d24c1d3b46.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 51a414b..50c95b5 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -20,6 +20,7 @@ class murano::db::sync { Anchor['murano::dbsync::begin'] ], notify => Anchor['murano::dbsync::end'], + tag => 'openstack-db', } } diff --git a/manifests/db/sync_cfapi.pp b/manifests/db/sync_cfapi.pp index 64c7b9c..b6f77ca 100644 --- a/manifests/db/sync_cfapi.pp +++ b/manifests/db/sync_cfapi.pp @@ -20,6 +20,7 @@ class murano::db::sync_cfapi { Anchor['murano::dbsync::begin'] ], notify => Anchor['murano::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-809258d24c1d3b46.yaml b/releasenotes/notes/openstack_db_tag-809258d24c1d3b46.yaml new file mode 100644 index 0000000..4872e11 --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-809258d24c1d3b46.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/murano_db_sync_cfapi_spec.rb b/spec/classes/murano_db_sync_cfapi_spec.rb index 60c203a..246a0da 100644 --- a/spec/classes/murano_db_sync_cfapi_spec.rb +++ b/spec/classes/murano_db_sync_cfapi_spec.rb @@ -15,6 +15,7 @@ describe 'murano::db::sync_cfapi' do 'Anchor[murano::config::end]', 'Anchor[murano::dbsync::begin]'], :notify => 'Anchor[murano::dbsync::end]', + :tag => 'openstack-db', ) end diff --git a/spec/classes/murano_db_sync_spec.rb b/spec/classes/murano_db_sync_spec.rb index 93967b0..ccb1c92 100644 --- a/spec/classes/murano_db_sync_spec.rb +++ b/spec/classes/murano_db_sync_spec.rb @@ -17,6 +17,7 @@ describe 'murano::db::sync' do 'Anchor[murano::config::end]', 'Anchor[murano::dbsync::begin]'], :notify => 'Anchor[murano::dbsync::end]', + :tag => 'openstack-db', ) end