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

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

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

+ 3
- 0
releasenotes/notes/openstack_db_tag-874ef77468c5d1f2.yaml View File

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

+ 2
- 0
spec/classes/ceilometer_db_sync_spec.rb View File

@@ -17,6 +17,7 @@ describe 'ceilometer::db::sync' do
17 17
                          'Anchor[ceilometer::config::end]',
18 18
                          'Anchor[ceilometer::dbsync::begin]'],
19 19
         :notify      => 'Anchor[ceilometer::dbsync::end]',
20
+        :tag         => 'openstack-db',
20 21
       )
21 22
     end
22 23
 
@@ -39,6 +40,7 @@ describe 'ceilometer::db::sync' do
39 40
                          'Anchor[ceilometer::config::end]',
40 41
                          'Anchor[ceilometer::dbsync::begin]'],
41 42
         :notify      => 'Anchor[ceilometer::dbsync::end]',
43
+        :tag         => 'openstack-db',
42 44
       )
43 45
       }
44 46
     end

Loading…
Cancel
Save