Browse Source

Configure ceph_secret as secret

Parameter ceph_secret should be configured as a secret.

Change-Id: Iad83e8bbe3904fe4bc25570d296b804ce692161c
Closes-Bug: #1840206
(cherry picked from commit 0d83a6e5c1)
changes/45/677045/1
ZhongShengping 1 month ago
parent
commit
c4405891b7
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      manifests/storage/ceph.pp
  2. 1
    1
      spec/classes/gnocchi_storage_ceph_spec.rb

+ 1
- 1
manifests/storage/ceph.pp View File

@@ -83,7 +83,7 @@ class gnocchi::storage::ceph(
83 83
     'storage/driver':        value => 'ceph';
84 84
     'storage/ceph_username': value => $ceph_username;
85 85
     'storage/ceph_keyring':  value => $ceph_keyring;
86
-    'storage/ceph_secret':   value => $ceph_secret;
86
+    'storage/ceph_secret':   value => $ceph_secret, secret => true;
87 87
     'storage/ceph_pool':     value => $ceph_pool;
88 88
     'storage/ceph_conffile': value => $ceph_conffile;
89 89
   }

+ 1
- 1
spec/classes/gnocchi_storage_ceph_spec.rb View File

@@ -31,7 +31,7 @@ describe 'gnocchi::storage::ceph' do
31 31
         params.merge!({
32 32
           :ceph_secret => 'secrete'})
33 33
       end
34
-      it { is_expected.to contain_gnocchi_config('storage/ceph_secret').with_value('secrete') }
34
+      it { is_expected.to contain_gnocchi_config('storage/ceph_secret').with_value('secrete').with_secret(true) }
35 35
     end
36 36
 
37 37
     context 'without required parameters' do

Loading…
Cancel
Save