Add ceilometer_setting for type/provider
This commit is contained in:
parent
68b960a245
commit
c57f071cf2
22
provider/ceilometer_setting/ini_setting.rb
Normal file
22
provider/ceilometer_setting/ini_setting.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user