85b90a72323991bea63b6a5848266d467e16117d
[mirror/dsa-puppet.git] / 3rdparty / modules / nova / lib / puppet / provider / nova_config / ini_setting.rb
1 Puppet::Type.type(:nova_config).provide(
2   :ini_setting,
3   :parent => Puppet::Type.type(:ini_setting).provider(:ruby)
4 ) do
5
6   # the setting is always default
7   # this if for backwards compat with the old puppet providers for nova_config
8   def section
9     resource[:name].split('/', 2)[0]
10   end
11
12   # assumes that the name was the setting
13   # this is to maintain backwards compat with the the older
14   # stuff
15   def setting
16     resource[:name].split('/', 2)[1]
17   end
18
19   def separator
20     '='
21   end
22
23   def self.file_path
24     '/etc/nova/nova.conf'
25   end
26
27   # this needs to be removed. This has been replaced with the class method
28   def file_path
29     self.class.file_path
30   end
31
32 end