ceilometer_config used to accept section-less configuration name.
Change-Id: I11348ced3bccb1bb88ae493ae1e15017aa360096
newparam(:name, :namevar => true) do
desc 'Section/setting name to manage from ceilometer.conf'
- validate do |value|
- unless value =~ /\S+\/\S+/
- fail("Invalid ceilometer_config #{value}, entries without sections are no longer supported, please add an explicit section (probably DEFAULT) to all ceilometer_config resources")
- end
- end
+ newvalues(/\S+\/\S+/)
end
newproperty(:value) do
defaultto false
end
- validate do
- if self[:ensure] == :present
- if self[:value].nil?
- raise Puppet::Error, "Property value must be set for #{self[:name]} when ensure is present"
- end
- end
- end
-
end