Switch provider to manage paste.ini file

... so that we users can use '<SERVICE DEFAULT>' similarly to
the resource types to manage the <service>.conf files.

Closes-Bug: #1981118
Change-Id: I009caf9ae256ae9765a8720d5003f65047e2f1d9
This commit is contained in:
Takashi Kajinami 2022-07-09 23:37:55 +09:00
parent 9e7929fddc
commit ca2d073b5a
1 changed files with 1 additions and 18 deletions

View File

@ -1,27 +1,10 @@
Puppet::Type.type(:sahara_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/sahara/api-paste.ini'
end
# added for backwards compatibility with older versions of inifile
def file_path
self.class.file_path
end
end