diff --git a/manifests/patch/config.pp b/manifests/patch/config.pp deleted file mode 100644 index 848b52239..000000000 --- a/manifests/patch/config.pp +++ /dev/null @@ -1,32 +0,0 @@ -# == Class: nova:patch::config -# -# DEPRECATED !!! -# This class is aim to configure nova.patch parameters -# -# === Parameters: -# -# [*monkey_patch*] -# (optional) Apply monkey patching or not -# Defaults to $facts['os_service_default'] -# -# [*monkey_patch_modules*] -# (optional) List of modules/decorators to monkey patch -# Defaults to $facts['os_service_default'] -# -class nova::patch::config ( - $monkey_patch = $facts['os_service_default'], - $monkey_patch_modules = $facts['os_service_default'], -) { - - include nova::deps - - warning("The nova::patch::config class has been deprecated \" -and will be removed in the future release.") - - $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; - } -} diff --git a/releasenotes/notes/remove-monkey_patch-33c456287e8f0ef0.yaml b/releasenotes/notes/remove-monkey_patch-33c456287e8f0ef0.yaml new file mode 100644 index 000000000..b7162cf17 --- /dev/null +++ b/releasenotes/notes/remove-monkey_patch-33c456287e8f0ef0.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + The ``nova::patch::config`` class has been removed. diff --git a/spec/classes/nova_patch_config_spec.rb b/spec/classes/nova_patch_config_spec.rb deleted file mode 100644 index 44d4a9e8b..000000000 --- a/spec/classes/nova_patch_config_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -require 'spec_helper' - -describe 'nova::patch::config' do - - let :params do - {} - end - - shared_examples 'nova::patch::config' do - - it { is_expected.to contain_class('nova::deps') } - - context 'with default parameters' do - it { is_expected.to contain_nova_config('DEFAULT/monkey_patch').with_value('') } - it { is_expected.to contain_nova_config('DEFAULT/monkey_patch_modules').with_value('') } - end - - context 'when overriding parameters' do - let :params do - { :monkey_patch => true, - :monkey_patch_modules => ['nova.compute.api:nova.notifications.notify_decorator'] - } - end - - it { is_expected.to contain_nova_config('DEFAULT/monkey_patch').with_value('true') } - it { is_expected.to contain_nova_config('DEFAULT/monkey_patch_modules').with_value('nova.compute.api:nova.notifications.notify_decorator') } - end - end - - on_supported_os({ - :supported_os => OSDefaults.get_supported_os - }).each do |os,facts| - context "on #{os}" do - let (:facts) do - facts.merge!(OSDefaults.get_facts()) - end - - it_configures 'nova::patch::config' - end - end - -end