From 1f43e25cc722bbbe1e1b147f55260b6a95622547 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 15 Oct 2021 11:46:43 +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: I8ebe0c65b0e71380ba5a58a81b57e595e8dd29f8 --- lib/puppet/type/nova_api_paste_ini.rb | 5 +++++ .../notes/api_paste_ini-separator-6e3ea618663fcf0d.yaml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/api_paste_ini-separator-6e3ea618663fcf0d.yaml diff --git a/lib/puppet/type/nova_api_paste_ini.rb b/lib/puppet/type/nova_api_paste_ini.rb index 3fe2c45ce..ab62842cc 100644 --- a/lib/puppet/type/nova_api_paste_ini.rb +++ b/lib/puppet/type/nova_api_paste_ini.rb @@ -45,6 +45,11 @@ Puppet::Type.newtype(:nova_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 ['nova::install::end'] end diff --git a/releasenotes/notes/api_paste_ini-separator-6e3ea618663fcf0d.yaml b/releasenotes/notes/api_paste_ini-separator-6e3ea618663fcf0d.yaml new file mode 100644 index 000000000..3257cb7a6 --- /dev/null +++ b/releasenotes/notes/api_paste_ini-separator-6e3ea618663fcf0d.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``key_val_separator`` parameter has been added to + the ``nova_api_paste_ini`` resource type.