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: I8215df855b260b9421df121d136be2e77eab1346
Closes-Bug: #1755102
tags/13.0.0
ZhongShengping 1 year ago
parent
commit
d411323255

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

@@ -25,6 +25,7 @@ class aodh::db::sync (
25 25
       Anchor['aodh::dbsync::begin']
26 26
     ],
27 27
     notify      => Anchor['aodh::dbsync::end'],
28
+    tag         => 'openstack-db',
28 29
   }
29 30
 
30 31
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-987f513d508e7717.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/aodh_db_sync_spec.rb View File

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

Loading…
Cancel
Save