puppet-nova/manifests/patch/config.pp
Tobias Urdin 7deecfbdf2 Convert all class usage to relative names
Change-Id: Ibe5a433cb67c38c0c9b05a50bffa2eda7391f241
2019-12-08 23:13:08 +01:00

29 lines
749 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;
}
}