Fix privilege issue in platform certificates update
When 'localhost' isn't included in the target_list parameter of
update_platform_certificates.yml playbook, there is an error at the
end of the execution caused by 'localhost' not being able to escalate
to handle the files used to install the CA certificates as trusted.
This commit includes code to acquire the required variables for
privilege escalation for 'localhost'.
Test Plan:
PASS: In DC w/ SX sc, executed update_platform_certificates.yml
passing 'target_list=all_online_subclouds'.
PASS: In DC w/ SX sc, executed update_platform_certificates.yml
passing 'target_list=locahost,all_online_subclouds'.
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/900424 /opendev. org/starlingx/ ansible- playbooks/ commit/ 9b1197cc4cef9dc c85dd7eda639ad4 d7a5da0479
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 9b1197cc4cef9dc c85dd7eda639ad4 d7a5da0479
Author: Marcelo Loebens <email address hidden>
Date: Wed Nov 8 11:13:10 2023 -0400
Fix privilege issue in platform certificates update
When 'localhost' isn't included in the target_list parameter of platform_ certificates. yml playbook, there is an error at the
update_
end of the execution caused by 'localhost' not being able to escalate
to handle the files used to install the CA certificates as trusted.
This commit includes code to acquire the required variables for
privilege escalation for 'localhost'.
Test Plan: platform_ certificates. yml list=all_ online_ subclouds' .
PASS: In DC w/ SX sc, executed update_
passing 'target_
PASS: In DC w/ SX sc, executed update_ platform_ certificates. yml list=locahost, all_online_ subclouds' .
passing 'target_
Closes-bug: 2047652
Change-Id: I9cc64a0e2e5c55 73ac34cb8e2488b b0b688475d9
Signed-off-by: Marcelo Loebens <email address hidden>