Files
puppet-nova/lib/puppet/provider/libvirtd_config/ini_setting.rb
Sven Anderson a27c62c046 Add libvirtd_config resource provider
In order to be more flexible with setting libvirtd.conf values a
libvirtd_config resource provider similar to nova_config is added and
the class nova::compute::libvirt::config allows setting of arbitrary
configuration settings.

Related-Bug: #1696504
Change-Id: I30090bed2bda6f1c2d81d70c35f4bd1c71586d71
2017-07-13 20:41:34 +00:00

28 lines
416 B
Ruby

Puppet::Type.type(:libvirtd_config).provide(
:ini_setting,
:parent => Puppet::Type.type(:ini_setting).provider(:ruby)
) do
def section
''
end
def setting
resource[:name]
end
def separator
'='
end
def self.file_path
'/etc/libvirt/libvirtd.conf'
end
# this needs to be removed. This has been replaced with the class method
def file_path
self.class.file_path
end
end