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: I800fd9a00ddf7e7ca0ebd54c9d203cf04477aa3b
Closes-Bug: #1755102
tags/13.0.0
ZhongShengping 1 year ago
parent
commit
d595457836

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

@@ -31,6 +31,7 @@ class gnocchi::db::sync (
31 31
       Anchor['gnocchi::dbsync::begin']
32 32
     ],
33 33
     notify      => Anchor['gnocchi::dbsync::end'],
34
+    tag         => 'openstack-db',
34 35
   }
35 36
 
36 37
 }

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

@@ -17,6 +17,7 @@ describe 'gnocchi::db::sync' do
17 17
                          'Anchor[gnocchi::config::end]',
18 18
                          'Anchor[gnocchi::dbsync::begin]'],
19 19
         :notify      => 'Anchor[gnocchi::dbsync::end]',
20
+        :tag         => 'openstack-db',
20 21
       )
21 22
     end
22 23
     describe "overriding extra_opts" do
@@ -37,6 +38,7 @@ describe 'gnocchi::db::sync' do
37 38
                              'Anchor[gnocchi::config::end]',
38 39
                              'Anchor[gnocchi::dbsync::begin]'],
39 40
             :notify      => 'Anchor[gnocchi::dbsync::end]',
41
+            :tag         => 'openstack-db',
40 42
         )
41 43
        }
42 44
     end

Loading…
Cancel
Save