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: Ie967ffa9e2545d9089aaa4b255b13f479d296ff7
This commit is contained in:
parent
7f011baa00
commit
f23a76006e
|
@ -1,27 +1,10 @@
|
||||||
Puppet::Type.type(:cinder_api_paste_ini).provide(
|
Puppet::Type.type(:cinder_api_paste_ini).provide(
|
||||||
:ini_setting,
|
:ini_setting,
|
||||||
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
|
:parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
|
||||||
) do
|
) do
|
||||||
|
|
||||||
def section
|
|
||||||
resource[:name].split('/', 2).first
|
|
||||||
end
|
|
||||||
|
|
||||||
def setting
|
|
||||||
resource[:name].split('/', 2).last
|
|
||||||
end
|
|
||||||
|
|
||||||
def separator
|
|
||||||
'='
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.file_path
|
def self.file_path
|
||||||
'/etc/cinder/api-paste.ini'
|
'/etc/cinder/api-paste.ini'
|
||||||
end
|
end
|
||||||
|
|
||||||
# added for backwards compatibility with older versions of inifile
|
|
||||||
def file_path
|
|
||||||
self.class.file_path
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue