Files
puppet-nova/manifests/compute/libvirt/config.pp
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

31 lines
808 B
Puppet

# == Class: nova::compute::libvirt::config
#
# This class is used to manage arbitrary libvirtd configurations.
#
# === Parameters
#
# [*libvirtd_config*]
# (optional) Allow configuration of arbitrary libvirtd configurations.
# The value is an hash of libvirtd_config resources. Example:
# { 'foo' => { value => 'fooValue'},
# 'bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# libvirtd_config:
# foo:
# value: fooValue
# bar:
# value: barValue
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
class nova::compute::libvirt::config (
$libvirtd_config = {},
) {
validate_hash($libvirtd_config)
create_resources('libvirtd_config', $libvirtd_config)
}