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)
This commit is contained in:
ZhongShengping 2019-08-15 11:14:08 +08:00 committed by zhongshengping
parent 9c16b41e55
commit c4405891b7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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