Browse Source

Merge "Centralize arbitrary configurations for libvirt daemons"

changes/05/785305/4
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
9e90c50e0b
3 changed files with 25 additions and 2 deletions
  1. +10
    -1
      manifests/compute/libvirt/config.pp
  2. +5
    -1
      manifests/compute/libvirt/virtlogd/config.pp
  3. +10
    -0
      releasenotes/notes/virtlogd_config-1bcf0201932c2cb2.yaml

+ 10
- 1
manifests/compute/libvirt/config.pp View File

@ -17,14 +17,23 @@
# bar:
# value: barValue
#
# [*virtlogd_config*]
# (optional) Allow configuration of arbitrary virtlogd configurations.
# The value is an hash of virtlogd_config resources.
#
# 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 = {},
$libvirtd_config = {},
$virtlogd_config = {},
) {
include nova::deps
validate_legacy(Hash, 'validate_hash', $libvirtd_config)
validate_legacy(Hash, 'validate_hash', $virtlogd_config)
create_resources('libvirtd_config', $libvirtd_config)
create_resources('virtlogd_config', $virtlogd_config)
}

+ 5
- 1
manifests/compute/libvirt/virtlogd/config.pp View File

@ -1,11 +1,12 @@
# == Class: nova::compute::libvirt::virtlogd::config
#
# DEPRECATED !
# This class is used to manage arbitrary virtlogd configurations.
#
# === Parameters
#
# [*virtlogd_config*]
# (optional) Allow configuration of arbitrary libvirtd configurations.
# (optional) Allow configuration of arbitrary virtlogd configurations.
# The value is an hash of virtlogd_config resources. Example:
# { 'foo' => { value => 'fooValue'},
# 'bar' => { value => 'barValue'}
@ -24,6 +25,9 @@ class nova::compute::libvirt::virtlogd::config (
$virtlogd_config = {},
) {
warning('The nova::compute::libvirt::virtlogd::config class has been deprecated. \
Use the nova::compute::libvirt::config::virtlogd_config parameter.')
validate_legacy(Hash, 'validate_hash', $virtlogd_config)
create_resources('virtlogd_config', $virtlogd_config)


+ 10
- 0
releasenotes/notes/virtlogd_config-1bcf0201932c2cb2.yaml View File

@ -0,0 +1,10 @@
---
features:
- |
The new ``nova::compute::libvirt::virtlogd_config`` parameter has been
added.
deprecations:
- |
The ``nova::compute::libvirt::virtlogd::config`` class has been deprecated
in favor of ``nova::compute::libvirt::virtlogd_config``.

Loading…
Cancel
Save