Configure access_key and secret_key as secret
Change-Id: I121803b47c5f5e995aad8e0b90ccf181065ef294
Closes-Bug: #1786035
(cherry picked from commit 5af9d8765c
)
This commit is contained in:
parent
ee64a7835c
commit
2602c0bb91
|
@ -101,8 +101,8 @@ you should use puppet-glare module for configuring Glare service.")
|
|||
}
|
||||
|
||||
glance_api_config {
|
||||
'glance_store/s3_store_access_key': value => $access_key;
|
||||
'glance_store/s3_store_secret_key': value => $secret_key;
|
||||
'glance_store/s3_store_access_key': value => $access_key, secret => true;
|
||||
'glance_store/s3_store_secret_key': value => $secret_key, secret => true;
|
||||
'glance_store/s3_store_host': value => $host;
|
||||
'glance_store/s3_store_bucket': value => $bucket;
|
||||
'glance_store/s3_store_bucket_url_format': value => $bucket_url_format;
|
||||
|
|
|
@ -15,8 +15,8 @@ describe 'glance::backend::s3' do
|
|||
|
||||
it 'configures glance-api.conf' do
|
||||
is_expected.to contain_glance_api_config('glance_store/default_store').with_value('s3')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_access_key').with_value('access')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_secret_key').with_value('secret')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_access_key').with_value('access').with_secret(true)
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_secret_key').with_value('secret').with_secret(true)
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_host').with_value('host')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_bucket').with_value('bucket')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_bucket_url_format').with_value('<SERVICE DEFAULT>')
|
||||
|
@ -45,8 +45,8 @@ describe 'glance::backend::s3' do
|
|||
end
|
||||
|
||||
it 'configures glance-api.conf' do
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_access_key').with_value('access2')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_secret_key').with_value('secret2')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_access_key').with_value('access2').with_secret(true)
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_secret_key').with_value('secret2').with_secret(true)
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_host').with_value('host2')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_bucket').with_value('bucket2')
|
||||
is_expected.to contain_glance_api_config('glance_store/s3_store_bucket_url_format').with_value('path')
|
||||
|
|
Loading…
Reference in New Issue