From bdf1efde80aac2a50917b10be6642962a6456ba3 Mon Sep 17 00:00:00 2001 From: Thomas Woerner Date: Wed, 30 Jul 2025 15:14:04 +0200 Subject: [PATCH] ipaclient: client_dns has new statestore arg with IPA change e6445b8 The new argument was introduced with the IPA change e6445b8 to disable the previous Unbound configuration before setting up new configuration for DNS over TLS. Related: https://pagure.io/freeipa/issue/9814 --- roles/ipaclient/library/ipaclient_setup_nss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/ipaclient/library/ipaclient_setup_nss.py b/roles/ipaclient/library/ipaclient_setup_nss.py index 6ab4186d..f8e46400 100644 --- a/roles/ipaclient/library/ipaclient_setup_nss.py +++ b/roles/ipaclient/library/ipaclient_setup_nss.py @@ -388,7 +388,11 @@ def main(): tasks.insert_ca_certs_into_systemwide_ca_store(ca_certs) if not options.on_master: - client_dns(cli_server[0], hostname, options) + argspec_client_dns = getargspec(client_dns) + if "statestore" in argspec_client_dns.args: + client_dns(cli_server[0], hostname, options, statestore) + else: + client_dns(cli_server[0], hostname, options) if hasattr(paths, "SSH_CONFIG_DIR"): ssh_config_dir = paths.SSH_CONFIG_DIR