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: I7baded10a128532f7267903fa8d14f576cd9f47a
Closes-Bug: #1755102
(cherry picked from commit 90863dce61)
changes/92/609892/1
ZhongShengping 1 year ago
parent
commit
83f0baaccd

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

@@ -34,5 +34,6 @@ class trove::db::sync {
34 34
       Anchor['trove::dbsync::begin']
35 35
     ],
36 36
     notify      => Anchor['trove::dbsync::end'],
37
+    tag         => 'openstack-db',
37 38
   }
38 39
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-801df2b37104b652.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/trove_db_sync_spec.rb View File

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

Loading…
Cancel
Save