From 4f0df3c8db18461d59aad574300fb40e0844c1fb Mon Sep 17 00:00:00 2001 From: Chris Edillon <67980205+jce-redhat@users.noreply.github.com> Date: Mon, 13 May 2024 15:19:38 -0400 Subject: [PATCH] Change injector raw formatting (#146) --- linux/setup.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux/setup.yml b/linux/setup.yml index 3208c55..93a0221 100644 --- a/linux/setup.yml +++ b/linux/setup.yml @@ -4,6 +4,8 @@ user_message: - Update Credential for Insights Inventory with Red Hat account. - Add variables for system_roles. https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhel_system_roles +# "!unsafe" used to pass raw jinja2 through to the injector definition, see +# https://github.com/redhat-cop/controller_configuration/tree/devel/roles/credential_types#formating-injectors controller_credential_types: - name: Insights Collection kind: cloud @@ -18,8 +20,8 @@ controller_credential_types: secret: true injectors: env: - INSIGHTS_USER: "{% raw %}{ { insights_user }}{% endraw %}" - INSIGHTS_PASSWORD: "{% raw %}{ { insights_password }}{% endraw %}" + INSIGHTS_USER: !unsafe '{{ insights_user }}' + INSIGHTS_PASSWORD: !unsafe '{{ insights_password }}' controller_credentials: - name: Insights Inventory