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: I4e520669894ae44b6fe29db5f4c5e87ed4e2c9b6
Closes-Bug: #1755102
(cherry picked from commit 627b5a1ba4)
ZhongShengping 1 year ago
parent
commit
e8b5a984ec

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

@@ -18,5 +18,6 @@ class manila::db::sync {
18 18
       Anchor['manila::dbsync::begin']
19 19
     ],
20 20
     notify      => Anchor['manila::dbsync::end'],
21
+    tag         => 'openstack-db',
21 22
   }
22 23
 }

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

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

Loading…
Cancel
Save