Add ceilometer_setting for type/provider

This commit is contained in:
emilienm 2012-12-07 14:33:17 +01:00
parent 49110c1fd1
commit 699aab14df
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Puppet::Type.newtype(:ceilometer_config) do
ensurable
newparam(:name, :namevar => true) do
desc 'Section/setting name to manage from ceilometer.conf'
newvalues(/\S+\/\S+/)
end
newproperty(:value) do
desc 'The value of the setting to be defined.'
munge do |v|
v.to_s.strip
end
end
end