puppet-ceilometer/lib/puppet/provider/ceilometer_config/ini_setting.rb

23 lines
347 B
Ruby

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