The default filename is api_paste.ini, not api-paste.ini. Since we do not have an option to set the file name using [DEFAULT]/api_paste_config, we should fix the default to make sure it works. Change-Id: I054af2663a376b5ec2a0606437ff3fb90c00934a
28 lines
474 B
Ruby
28 lines
474 B
Ruby
Puppet::Type.type(:ceilometer_api_paste_ini).provide(
|
|
:ini_setting,
|
|
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
|
|
) 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/ceilometer/api_paste.ini'
|
|
end
|
|
|
|
# added for backwards compatibility with older versions of inifile
|
|
def file_path
|
|
self.class.file_path
|
|
end
|
|
|
|
end
|