Add ceilometer_setting for type/provider
This commit is contained in:
parent
49110c1fd1
commit
699aab14df
18
lib/puppet/type/ceilometer_config.rb
Normal file
18
lib/puppet/type/ceilometer_config.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user