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: Ie7026a1b3f62b68a0e971f2ed3a683226eb657ef
Closes-Bug: #1755102
(cherry picked from commit 8fab8ebfe4)
tags/11.6.0
ZhongShengping 1 year ago
parent
commit
38e2efa801

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

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

+ 3
- 0
releasenotes/notes/openstack_db_tag-9d9b3d58c9d63a42.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/tacker_db_sync_spec.rb View File

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

Loading…
Cancel
Save