From 9a79a3f0f712445f9173d4798fb7c83e7100105b Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 23 Feb 2022 14:35:50 +0000 Subject: [PATCH] Fix configuration dump Currently, a kayobe configuration dump fails: $ kayobe configuration dump --var-name stackhpc_pulp_repository_rpm_repos --limit localhost [WARNING]: Unable to find 'certs/ark.stackhpc.com/client-cert.pem' in expected paths (use -vvvvv to see paths) could not locate file in lookup: certs/ark.stackhpc.com/client-cert.pem This change fixes the issue by using an absolute path to the certificate files. Fixes: #35 --- etc/kayobe/pulp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/kayobe/pulp.yml b/etc/kayobe/pulp.yml index b9995077f5..97c8afcc7a 100644 --- a/etc/kayobe/pulp.yml +++ b/etc/kayobe/pulp.yml @@ -22,8 +22,8 @@ stackhpc_release_pulp_password: # Client certificates used to access StackHPC Ark repositories. # They are trusted by the 'release' cert guard's CA. -stackhpc_release_pulp_client_cert: "{{ lookup('file', 'certs/ark.stackhpc.com/client-cert.pem') | trim }}" -stackhpc_release_pulp_client_key: "{{ lookup('file', 'certs/ark.stackhpc.com/client-key.pem') | trim }}" +stackhpc_release_pulp_client_cert: "{{ lookup('file', kayobe_config_path ~ '/ansible/certs/ark.stackhpc.com/client-cert.pem') | trim }}" +stackhpc_release_pulp_client_key: "{{ lookup('file', kayobe_config_path ~ '/ansible/certs/ark.stackhpc.com/client-key.pem') | trim }}" ###############################################################################