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: I4092da4732d5e68ce190e7341df7a01166954504
This commit is contained in:
parent
4466f7cde6
commit
322599b75d
@ -1,20 +1,8 @@
|
||||
Puppet::Type.type(:nova_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/nova/api-paste.ini'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user