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: I41a7eb38176781bffc16c6886a3de9f855036fbc
Closes-Bug: #1755102
(cherry picked from commit 15dc6f8d4e)
stable/queens
ZhongShengping 1 year ago
parent
commit
4553bc0405

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

@@ -28,6 +28,7 @@ class watcher::db::create_schema(
28 28
       Anchor['watcher::db::create_schema::begin']
29 29
     ],
30 30
     notify      => Anchor['watcher::db::create_schema::end'],
31
+    tag         => 'openstack-db',
31 32
   }
32 33
 
33 34
 }

+ 3
- 0
releasenotes/notes/openstack_db_tag-8c7bcab4734ad950.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/watcher_db_create_schema_spec.rb View File

@@ -19,6 +19,7 @@ describe 'watcher::db::create_schema' do
19 19
           'Anchor[watcher::db::create_schema::begin]'
20 20
         ],
21 21
         :notify      => 'Anchor[watcher::db::create_schema::end]',
22
+        :tag         => 'openstack-db',
22 23
       )
23 24
     end
24 25
 
@@ -44,6 +45,7 @@ describe 'watcher::db::create_schema' do
44 45
             'Anchor[watcher::db::create_schema::begin]'
45 46
           ],
46 47
           :notify      => 'Anchor[watcher::db::create_schema::end]',
48
+          :tag         => 'openstack-db',
47 49
         )
48 50
         }
49 51
       end

Loading…
Cancel
Save