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: Ic7eeccc651d8b9f8c7884e6cfc765c3d4adb650c
Closes-Bug: #1755102
(cherry picked from commit 75732ff4e3)
ZhongShengping 1 year ago
parent
commit
382395f88f

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

@@ -20,6 +20,7 @@ class murano::db::sync {
20 20
       Anchor['murano::dbsync::begin']
21 21
     ],
22 22
     notify      => Anchor['murano::dbsync::end'],
23
+    tag         => 'openstack-db',
23 24
   }
24 25
 
25 26
 }

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

@@ -20,6 +20,7 @@ class murano::db::sync_cfapi {
20 20
       Anchor['murano::dbsync::begin']
21 21
     ],
22 22
     notify      => Anchor['murano::dbsync::end'],
23
+    tag         => 'openstack-db',
23 24
   }
24 25
 
25 26
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-809258d24c1d3b46.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/murano_db_sync_cfapi_spec.rb View File

@@ -15,6 +15,7 @@ describe 'murano::db::sync_cfapi' do
15 15
                          'Anchor[murano::config::end]',
16 16
                          'Anchor[murano::dbsync::begin]'],
17 17
         :notify      => 'Anchor[murano::dbsync::end]',
18
+        :tag         => 'openstack-db',
18 19
       )
19 20
     end
20 21
 

+ 1
- 0
spec/classes/murano_db_sync_spec.rb View File

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

Loading…
Cancel
Save