2e0affcd93
Add ceilometer_api_paste_ini type/provider for Ceilometer. Also add the capability to configure api-paste.ini with config.pp. Closes-bug: #1483371 Change-Id: I7a5ce9629b9069495e233a4576742aeb171a09c1
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
|