From 31edf992554dad8e9567cbc5e0d496d98e091b1a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 9 Jul 2022 12:58:40 +0900 Subject: [PATCH] Switch provider to manage paste.ini file ... so that we users can use '' similarly to the resource types to manage the .conf files. Closes-Bug: #1981118 Change-Id: I56633cf5066f6608d1c61c19a956ebbad7cd9409 --- .../aodh_api_paste_ini/ini_setting.rb | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/puppet/provider/aodh_api_paste_ini/ini_setting.rb b/lib/puppet/provider/aodh_api_paste_ini/ini_setting.rb index d2b7f3bf..c17b5f8f 100644 --- a/lib/puppet/provider/aodh_api_paste_ini/ini_setting.rb +++ b/lib/puppet/provider/aodh_api_paste_ini/ini_setting.rb @@ -1,27 +1,10 @@ Puppet::Type.type(:aodh_api_paste_ini).provide( :ini_setting, - :parent => Puppet::Type.type(:ini_setting).provider(:ruby) + :parent => Puppet::Type.type(:openstack_config).provider(:ini_setting) ) do - def section - resource[:name].split('/', 2).first - end - - def setting - resource[:name].split('/', 2).last - end - - def separator - '=' - end - def self.file_path '/etc/aodh/api-paste.ini' end - # added for backwards compatibility with older versions of inifile - def file_path - self.class.file_path - end - end