From bfb1a76e0bf1e565a13ee87a59fc2877cd7cfac5 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Oct 2021 11:44:00 +0900 Subject: [PATCH] Allow customizing separator for api-paste.ini The api-paste.ini accepts not only "=" but also ":" and some services like Barbican have been using ":" for their default api-paste.ini files. [composite:main] use = egg:Paste#urlmap /: barbican_version /v1: barbican-api-keystone This change allows users to use ":" so that they can update the ini files with keeping it consistent with the default fules Depends-on: https://review.opendev.org/813614 Change-Id: Ia0fcaf362088620d13de2211e9e92b134e8dacef --- lib/puppet/type/neutron_api_paste_ini.rb | 5 +++++ .../notes/api_paste_ini-separator-d0cdc04bd0cad337.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/api_paste_ini-separator-d0cdc04bd0cad337.yaml diff --git a/lib/puppet/type/neutron_api_paste_ini.rb b/lib/puppet/type/neutron_api_paste_ini.rb index 97f7f0d35..d8a8154b7 100644 --- a/lib/puppet/type/neutron_api_paste_ini.rb +++ b/lib/puppet/type/neutron_api_paste_ini.rb @@ -45,6 +45,11 @@ Puppet::Type.newtype(:neutron_api_paste_ini) do defaultto('') end + newparam(:key_val_separator) do + desc 'The separator string to use between each setting name and value.' + defaultto('=') + end + autorequire(:anchor) do ['neutron::install::end'] end diff --git a/releasenotes/notes/api_paste_ini-separator-d0cdc04bd0cad337.yaml b/releasenotes/notes/api_paste_ini-separator-d0cdc04bd0cad337.yaml new file mode 100644 index 000000000..3d2771819 --- /dev/null +++ b/releasenotes/notes/api_paste_ini-separator-d0cdc04bd0cad337.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``key_val_separator`` parameter has been added to + the ``neutron_api_paste_ini`` resource type.