puppet-nova/manifests/patch/config.pp
Lokesh Jain e2e880b299 Added nova patching configuration parameters
These parameters are available in nova.conf, but were not
configurable using puppet-nova. The monkey patching parameters
allow patching a decorator for all functions in specified modules.
This change create patch/config.pp file to make these parameters
configurable.

Change-Id: I51ef3e19daff1d98cfe5c2c16475c16e6a3e3e0f
Closes-Bug: #1710292
2017-08-21 15:53:22 -04:00

29 lines
751 B
Puppet

# == Class: nova:patch::config
#
# This class is aim to configure nova.patch parameters
#
# === Parameters:
#
# [*monkey_patch*]
# (optional) Apply monkey patching or not
# Defaults to false
#
# [*monkey_patch_modules*]
# (optional) List of modules/decorators to monkey patch
# Defaults to $::os_service_default
#
class nova::patch::config (
$monkey_patch = false,
$monkey_patch_modules = $::os_service_default,
) {
include ::nova::deps
$monkey_patch_modules_real = pick(join(any2array($monkey_patch_modules), ','), $::os_service_default)
nova_config {
'DEFAULT/monkey_patch': value => $monkey_patch;
'DEFAULT/monkey_patch_modules': value => $monkey_patch_modules_real;
}
}