From e9a758a6f99a2969d120b3f2be44b121f74c1c58 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 11 Oct 2021 10:31:39 +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: I843154a46ac61c8ea54a7b28a42ad154568a845e --- lib/puppet/type/aodh_api_paste_ini.rb | 5 +++++ .../notes/api_paste_ini-separator-5244b86741750162.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/api_paste_ini-separator-5244b86741750162.yaml diff --git a/lib/puppet/type/aodh_api_paste_ini.rb b/lib/puppet/type/aodh_api_paste_ini.rb index bf8e457d..e7f461aa 100644 --- a/lib/puppet/type/aodh_api_paste_ini.rb +++ b/lib/puppet/type/aodh_api_paste_ini.rb @@ -45,6 +45,11 @@ Puppet::Type.newtype(:aodh_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 ['aodh::install::end'] end diff --git a/releasenotes/notes/api_paste_ini-separator-5244b86741750162.yaml b/releasenotes/notes/api_paste_ini-separator-5244b86741750162.yaml new file mode 100644 index 00000000..bb093847 --- /dev/null +++ b/releasenotes/notes/api_paste_ini-separator-5244b86741750162.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``key_val_separator`` parameter has been added to + the ``aodh_api_paste_ini`` resource type.