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: Icd2700fe8c27a647dab8d91a4f9c20eda930b4e1
Closes-Bug: #1755102
(cherry picked from commit b563459e37)
changes/71/609871/1
ZhongShengping 1 year ago
parent
commit
d8181add51

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

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

+ 3
- 0
releasenotes/notes/openstack_db_tag-89916b8b22f8e4a5.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/keystone_db_sync_spec.rb View File

@@ -18,6 +18,7 @@ describe 'keystone::db::sync' do
18 18
                           'Anchor[keystone::config::end]',
19 19
                           'Anchor[keystone::dbsync::begin]'],
20 20
           :notify      => 'Anchor[keystone::dbsync::end]',
21
+          :tag         => ['keystone-exec', 'openstack-db'],
21 22
         )
22 23
       }
23 24
     end
@@ -43,6 +44,7 @@ describe 'keystone::db::sync' do
43 44
                           'Anchor[keystone::config::end]',
44 45
                           'Anchor[keystone::dbsync::begin]'],
45 46
           :notify      => 'Anchor[keystone::dbsync::end]',
47
+          :tag         => ['keystone-exec', 'openstack-db'],
46 48
         )
47 49
       }
48 50
     end

Loading…
Cancel
Save