From patchwork Thu Feb 6 10:44:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13962798 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D49618B03 for ; Thu, 6 Feb 2025 10:44:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738838686; cv=none; b=h3O+gKrGENtfs7/MJnQpW8vKj/hbe1dG2qrLlpgtUvOV1/ZpkvURPMZIZAKAm9spv9cKwvGnPqheot60lXyfbxSJPWB3vAI8wBdFxL65T+yJkOM6cETdzJQVO3Z61Rn8OsX2jqWgxEOLQF/RB7TFWryd3JcX4ZRX2Q9w9VXcaxE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738838686; c=relaxed/simple; bh=9MJmCpKcjU+eHeoeUKcc3mForLsIL1xrczhn7C+vKwQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iyb3Rni0MyYGLBw/WniiHlGzH0rVAa/efyqJT1Yop2FGMF8HoQYkmQGMfYGKZwFL5W1M/LdFLdP57biwr3GOymzYss1/qHskL3VZRoAiybKs/K+Quvev7odpuv7rhP1sTNNzKcpdKkETl5ZsI2K05vdS/Y4k+vD6yElza4IgmRs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qQ98MFvE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qQ98MFvE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16057C4CEE4; Thu, 6 Feb 2025 10:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738838685; bh=9MJmCpKcjU+eHeoeUKcc3mForLsIL1xrczhn7C+vKwQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qQ98MFvEytsZgFrK+0Q3zw7gJcYmpRvhBe6KIBkV6v9y/hnFUFZNPxS4zI/43t8Mg 8axPrLewZphr+ymcqAxBD4KLcSix9wb0so25QvQanLuQXd4C9v2hRnt6PplKvBIDvL Cg0h2ef27soKUmjF9rM1zeAw9vZ2zm6DNLVOBLaVDp/X+uhNnFij274BJs2YZlxuJS yyaFpPtamdQh/hsZeF7/RPmW2aHzzLKYO45W/MOmkz9hPfTgVcc007OSfbHjD6lrY9 /9NW9EKyv5vent57cwmH7UTlh09hIpdG6cgoTRwO30ZQHbxPiUGeiR4qZCUwi862qG KmxXpQ1CgMR0g== From: da.gomez@kernel.org Date: Thu, 06 Feb 2025 10:44:20 +0000 Subject: [PATCH v3 3/4] ansible_cfg: add callback plugin cli support Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250206-ansible_cfg3-v3-3-4588c8c07e22@samsung.com> References: <20250206-ansible_cfg3-v3-0-4588c8c07e22@samsung.com> In-Reply-To: <20250206-ansible_cfg3-v3-0-4588c8c07e22@samsung.com> To: Luis Chamberlain , Chuck Lever Cc: kdevops@lists.linux.dev, Daniel Gomez X-Mailer: b4 0.14.2 From: Daniel Gomez To be able to change the Ansible Configuration File callback plugin via cli. Example: make defconfi-* ANSIBLE_CFG_CALLBACK_PLUGIN="debug" Signed-off-by: Daniel Gomez --- kconfigs/Kconfig.ansible_cfg | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/kconfigs/Kconfig.ansible_cfg b/kconfigs/Kconfig.ansible_cfg index bf09c368d85ece4d1272dbe378e1c283c9f57b89..7286b0fe502521835a2dada19b9d59207fc37b94 100644 --- a/kconfigs/Kconfig.ansible_cfg +++ b/kconfigs/Kconfig.ansible_cfg @@ -1,7 +1,12 @@ +config ANSIBLE_CFG_CALLBACK_PLUGIN_SET_BY_CLI + bool + default $(shell, scripts/check-cli-set-var.sh ANSIBLE_CFG_CALLBACK_PLUGIN) + menu "Ansible Callback Plugin Configuration" choice prompt "Ansible Callback Plugin" - default ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE + default ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE if !ANSIBLE_CFG_CALLBACK_PLUGIN_SET_BY_CLI + default ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM if ANSIBLE_CFG_CALLBACK_PLUGIN_SET_BY_CLI config ANSIBLE_CFG_CALLBACK_PLUGIN_DEBUG bool "Ansible Debug Callback Plugin" @@ -13,13 +18,28 @@ config ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE help Dense: https://docs.ansible.com/ansible/latest/collections/community/general/dense_callback.html +config ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM + bool "Custom Ansible Callback Plugin" + help + This will let you enter in your own Ansible callback plugin + endchoice +if ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM + +config ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM_NAME + string "Custom Ansible Callback Plugin Name" + default $(shell, ./scripts/append-makefile-vars.sh $(ANSIBLE_CFG_CALLBACK_PLUGIN)) if ANSIBLE_CFG_CALLBACK_PLUGIN_SET_BY_CLI + default "dense" if !ANSIBLE_CFG_CALLBACK_PLUGIN_SET_BY_CLI + +endif # ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM + config ANSIBLE_CFG_CALLBACK_PLUGIN_STRING string output yaml default "debug" if ANSIBLE_CFG_CALLBACK_PLUGIN_DEBUG default "dense" if ANSIBLE_CFG_CALLBACK_PLUGIN_DENSE + default ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM_NAME if ANSIBLE_CFG_CALLBACK_PLUGIN_CUSTOM config ANSIBLE_CFG_CALLBACK_PLUGIN_CHECK_MODE_MARKERS bool "check_mode_markers"