From 699aab14dfa21813c11ad0b3bd6aecfa30c8b361 Mon Sep 17 00:00:00 2001 From: emilienm Date: Fri, 7 Dec 2012 14:33:17 +0100 Subject: [PATCH] Add ceilometer_setting for type/provider --- .../provider/ceilometer_setting/ini_setting.rb | 0 lib/puppet/type/ceilometer_config.rb | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) rename lib/{ => puppet}/provider/ceilometer_setting/ini_setting.rb (100%) create mode 100644 lib/puppet/type/ceilometer_config.rb diff --git a/lib/provider/ceilometer_setting/ini_setting.rb b/lib/puppet/provider/ceilometer_setting/ini_setting.rb similarity index 100% rename from lib/provider/ceilometer_setting/ini_setting.rb rename to lib/puppet/provider/ceilometer_setting/ini_setting.rb diff --git a/lib/puppet/type/ceilometer_config.rb b/lib/puppet/type/ceilometer_config.rb new file mode 100644 index 00000000..92843daf --- /dev/null +++ b/lib/puppet/type/ceilometer_config.rb @@ -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