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: I632ec1cfcbe6085e27fa215d5d2efdeb625b736a
Closes-Bug: #1755102
(cherry picked from commit f9dd363bc2)
tags/11.6.0
ZhongShengping 1 year ago
parent
commit
cd303e7e3b

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

@@ -38,6 +38,7 @@ class magnum::db::sync(
38 38
       Anchor['magnum::dbsync::begin']
39 39
     ],
40 40
     notify      => Anchor['magnum::dbsync::end'],
41
+    tag         => 'openstack-db',
41 42
   }
42 43
 
43 44
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-aa8292ddf63b0698.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/magnum_db_sync_spec.rb View File

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

Loading…
Cancel
Save