From 1aa1be0bb64c18dad5f663f6f583a29e509ab8a2 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 3 Dec 2024 13:29:44 +0100 Subject: [PATCH] allow setting an alternative password for auth sources this is required for recording/live in setups where the password is not "changeme" --- tests/test_playbooks/auth_source_ldap.yml | 3 ++- tests/test_playbooks/vars/server.yml.example | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_playbooks/auth_source_ldap.yml b/tests/test_playbooks/auth_source_ldap.yml index 7c46fc42b..43f29ae2e 100644 --- a/tests/test_playbooks/auth_source_ldap.yml +++ b/tests/test_playbooks/auth_source_ldap.yml @@ -31,7 +31,8 @@ - include_tasks: tasks/auth_source_ldap.yml vars: auth_source_ldap_state: present - auth_source_ldap_account_password: changeme + # we only set this once at creation, as otherwise idempotency tests would fail + auth_source_ldap_account_password: "{{ default_auth_source_ldap_account_password }}" expected_change: true - include_tasks: tasks/auth_source_ldap.yml vars: diff --git a/tests/test_playbooks/vars/server.yml.example b/tests/test_playbooks/vars/server.yml.example index ffe0231d5..32a7b64a5 100644 --- a/tests/test_playbooks/vars/server.yml.example +++ b/tests/test_playbooks/vars/server.yml.example @@ -35,6 +35,7 @@ auth_source_ldap_base_dn: dc=example,dc=com auth_source_ldap_attr_login: uid auth_source_ldap_groups_base: cn=groups,cn=accounts,dc=example,dc=com external_usergroup_name: "admins" +default_auth_source_ldap_account_password: changeme # Satellite branded params satellite_username: "{{ foreman_username }}"