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: I3b8eeb554f9eac794dca0b691711dddc2f48ea1f
This commit is contained in:
parent
0ae3918d14
commit
2b72740540
@ -1,27 +1,10 @@
|
||||
Puppet::Type.type(:magnum_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/magnum/api-paste.ini'
|
||||
end
|
||||
|
||||
# added for backwards compatibility with older versions of inifile
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user