From 6f8f238b97cc40e007e3f900c0388d4deb3582dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Mon, 22 Jun 2026 22:21:58 +0200 Subject: [PATCH] Fix container registry credentials not passed when rhsm is disabled ContainerImageRegistryCredentials and ContainerImageRegistryLogin were gated behind {% if rhsm_enabled %}, so when using the rhos-release path they were never rendered into standalone_parameters.yaml. This caused TripleO to fail pulling container images with an authentication error, even though podman login succeeded separately. Decouple the credentials block from rhsm_enabled and gate it on registers being defined instead, so credentials are passed to TripleO whenever registries are configured regardless of subscription method. --- playbooks/templates/standalone_parameters.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/templates/standalone_parameters.yaml.j2 b/playbooks/templates/standalone_parameters.yaml.j2 index df499a0..df813ba 100644 --- a/playbooks/templates/standalone_parameters.yaml.j2 +++ b/playbooks/templates/standalone_parameters.yaml.j2 @@ -143,6 +143,8 @@ parameter_defaults: {% if ntp_server is defined %} NtpServer: {{ ntp_server }} {% endif %} +{% endif %} +{% if registers is defined and registers | length > 0 %} ContainerImageRegistryCredentials: # assume first registry {{ registers.0.name | ansible.builtin.mandatory}}: