From 4b39a9330dbbf69b235d688a900cfe8cdc975a39 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Oct 2021 11:20:24 +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: I6c79c6d865648cc309a489f6ef371d33673df93a --- lib/puppet/type/heat_api_paste_ini.rb | 5 +++++ .../notes/api_paste_ini-separator-c56b5387e8106e0d.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/api_paste_ini-separator-c56b5387e8106e0d.yaml diff --git a/lib/puppet/type/heat_api_paste_ini.rb b/lib/puppet/type/heat_api_paste_ini.rb index 483dc450..401d48be 100644 --- a/lib/puppet/type/heat_api_paste_ini.rb +++ b/lib/puppet/type/heat_api_paste_ini.rb @@ -45,6 +45,11 @@ Puppet::Type.newtype(:heat_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 ['heat::install::end'] end diff --git a/releasenotes/notes/api_paste_ini-separator-c56b5387e8106e0d.yaml b/releasenotes/notes/api_paste_ini-separator-c56b5387e8106e0d.yaml new file mode 100644 index 00000000..f5d05591 --- /dev/null +++ b/releasenotes/notes/api_paste_ini-separator-c56b5387e8106e0d.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``key_val_separator`` parameter has been added to + the ``heat_api_paste_ini`` resource type.