From 4879656058c43a88eb934ae0c61251aaa5ff82b9 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Fri, 29 Dec 2023 09:14:07 +0100 Subject: [PATCH] magnum: Disable CAPI driver when kubeconfig missing Closes-Bug: #2047360 Change-Id: I73490d84da39a74ea7ac493c7dd41fe7bfe2f578 --- ansible/roles/magnum/templates/magnum.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/magnum/templates/magnum.conf.j2 b/ansible/roles/magnum/templates/magnum.conf.j2 index 8422a8ce39..acf8b81243 100644 --- a/ansible/roles/magnum/templates/magnum.conf.j2 +++ b/ansible/roles/magnum/templates/magnum.conf.j2 @@ -151,3 +151,8 @@ trace_sqlalchemy = true hmac_keys = {{ osprofiler_secret }} connection_string = {{ osprofiler_backend_connection_string }} {% endif %} + +{% if magnum_kubeconfig_file_path is not defined %} +[drivers] +disabled_drivers = k8s_cluster_api_flatcar,k8s_cluster_api_ubuntu,k8s_cluster_api_ubuntu_focal +{% endif %}