Files
puppet-nova/manifests/patch/config.pp
Takashi Kajinami 51829b985f Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ibe75e48eeb387c213c42511797c59b9df39a7762
2023-03-02 12:25:22 +09:00

29 lines
770 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 $facts['os_service_default']
#
class nova::patch::config (
$monkey_patch = false,
$monkey_patch_modules = $facts['os_service_default'],
) {
include nova::deps
$monkey_patch_modules_real = pick(join(any2array($monkey_patch_modules), ','), $facts['os_service_default'])
nova_config {
'DEFAULT/monkey_patch': value => $monkey_patch;
'DEFAULT/monkey_patch_modules': value => $monkey_patch_modules_real;
}
}