Add ceilometer_setting for type/provider

This commit is contained in:
emilienm 2012-12-07 14:28:27 +01:00
parent 68b960a245
commit c57f071cf2

View File

@ -0,0 +1,22 @@
Puppet::Type.type(:ceilometer_config).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 file_path
'/etc/ceilometer/ceilometer.conf'
end
end