From 2087a51c6fadf828a7fe0154853b18fa4a3b0bda Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Mon, 12 May 2025 19:45:06 +0300 Subject: [PATCH] Fix ipa_kernel_options_default when ipa_collect_lldp is false TrivialFix Closes-Bug: #2110505 Change-Id: Ie4414733ac915faeb9fd10b02f46693651c0d706 Signed-off-by: Maksim Malchuk --- ansible/inventory/group_vars/all/ipa | 2 +- .../fix-ipa-kernel-options-default-a036666288778fa6.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fix-ipa-kernel-options-default-a036666288778fa6.yaml diff --git a/ansible/inventory/group_vars/all/ipa b/ansible/inventory/group_vars/all/ipa index bde7da682..21fbff2df 100644 --- a/ansible/inventory/group_vars/all/ipa +++ b/ansible/inventory/group_vars/all/ipa @@ -164,7 +164,7 @@ ipa_benchmarks: > # List of default kernel parameters for Ironic python agent. ipa_kernel_options_default: > - {{ ['ipa-collect-lldp=' ~ '1' if ipa_collect_lldp else '0'] + + {{ ['ipa-collect-lldp=' ~ ('1' if ipa_collect_lldp | bool else '0')] + ['ipa-inspection-collectors=' ~ ipa_collectors | join(',')] + ['ipa-inspection-benchmarks=' ~ ipa_benchmarks | join(',')] }} diff --git a/releasenotes/notes/fix-ipa-kernel-options-default-a036666288778fa6.yaml b/releasenotes/notes/fix-ipa-kernel-options-default-a036666288778fa6.yaml new file mode 100644 index 000000000..7b423101a --- /dev/null +++ b/releasenotes/notes/fix-ipa-kernel-options-default-a036666288778fa6.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes ``ipa_kernel_options_default`` when ``ipa_collect_lldp`` is set to + false. `LP#2110505 `__