Merge "Allow customizing separator for api-paste.ini"

This commit is contained in:
Zuul 2021-10-17 21:44:36 +00:00 committed by Gerrit Code Review
commit 3d1f3446ae
3 changed files with 16 additions and 8 deletions

View File

@ -62,6 +62,11 @@ Puppet::Type.newtype(:barbican_api_paste_ini) do
defaultto('<SERVICE DEFAULT>')
end
newparam(:key_val_separator) do
desc 'The separator string to use between each setting name and value.'
defaultto('=')
end
autorequire(:anchor) do
['barbican::install::end']
end

View File

@ -417,15 +417,13 @@ class barbican::api (
# keystone config
if $auth_strategy == 'keystone' {
include barbican::keystone::authtoken
barbican_api_paste_ini {
'composite:main//v1': value => 'barbican-api-keystone', key_val_separator => ':';
}
} else {
# TODO(tkajinam): We need to fix the barbican_api_paste_ini provider to
# support the following configuration.
#
# [composite:main]
# ...
# /v1: barbican_api
#
warning('The pipeline definiton should be updated manually when keystone is not used')
barbican_api_paste_ini {
'composite:main//v1': value => 'barbican_api', key_val_separator => ':';
}
}

View File

@ -0,0 +1,5 @@
---
features:
- |
The new ``key_val_separator`` attribute has been added to
the ``barbican_api_paste_ini`` resource type.