X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fcinder%2Flib%2Fpuppet%2Fprovider%2Fcinder_config%2Fini_setting.rb;fp=3rdparty%2Fmodules%2Fcinder%2Flib%2Fpuppet%2Fprovider%2Fcinder_config%2Fini_setting.rb;h=6dcd955971eefe387c554ecc1f5f0dac0e357353;hp=0000000000000000000000000000000000000000;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa diff --git a/3rdparty/modules/cinder/lib/puppet/provider/cinder_config/ini_setting.rb b/3rdparty/modules/cinder/lib/puppet/provider/cinder_config/ini_setting.rb new file mode 100644 index 00000000..6dcd9559 --- /dev/null +++ b/3rdparty/modules/cinder/lib/puppet/provider/cinder_config/ini_setting.rb @@ -0,0 +1,27 @@ +Puppet::Type.type(:cinder_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 self.file_path + '/etc/cinder/cinder.conf' + end + + # added for backwards compatibility with older versions of inifile + def file_path + self.class.file_path + end + +end