Browse Source

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
(cherry picked from commit eafc8877c8)
changes/87/609887/1
ZhongShengping 1 year ago
parent
commit
b57a505d4d

+ 1
- 0
manifests/db/sync.pp View File

@@ -28,6 +28,7 @@ class panko::db::sync(
28 28
       Anchor['panko::dbsync::begin']
29 29
     ],
30 30
     notify      => Anchor['panko::dbsync::end'],
31
+    tag         => 'openstack-db',
31 32
   }
32 33
 
33 34
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-8ad108d6f8e07a9e.yaml View File

@@ -0,0 +1,3 @@
1
+---
2
+features:
3
+  - Add openstack-db tag to Exec that run db-sync.

+ 1
- 0
spec/classes/panko_db_sync_spec.rb View File

@@ -19,6 +19,7 @@ describe 'panko::db::sync' do
19 19
                          'Anchor[panko::config::end]',
20 20
                          'Anchor[panko::dbsync::begin]'],
21 21
         :notify      => 'Anchor[panko::dbsync::end]',
22
+        :tag         => 'openstack-db',
22 23
       )
23 24
     end
24 25
 

Loading…
Cancel
Save