
In Idded7faba1ff6c811b94503c559029aeeaca6a06, we are changing the default path for tripleo-undercloud-outputs.yaml and tripleo-undercloud-passwords.yaml. These tasks in CI that expect the files to exist at the old location are updated to use the first_found lookup to check both the old and new paths. Likewise, when the output files are written on the minion, they are written to both the old and new locations until the tripleoclient patch merges. Once the tripleoclient patch merges, we can update these tasks to only look at the new path. Partial-Bug: #1921975 Signed-off-by: James Slagle <jslagle@redhat.com> Change-Id: If28d5b225439162b7983165fe3bea605971cfb74
26 lines
980 B
YAML
26 lines
980 B
YAML
---
|
|
# gather the output post-undercloud installation and register variables with
|
|
# their contents
|
|
- name: Collect undercloud outputs
|
|
slurp:
|
|
src: "{{ lookup('first_found', output_paths, errors='ignore') }}"
|
|
register: tmp_undercloud_outputs
|
|
vars:
|
|
output_paths:
|
|
- "{{ working_dir }}/tripleo-undercloud-outputs.yaml"
|
|
- "{{ working_dir }}/tripleo-deploy/undercloud/tripleo-undercloud-outputs.yaml"
|
|
|
|
- name: Collect undercloud passwords
|
|
slurp:
|
|
src: "{{ lookup('first_found', password_paths, errors='ignore') }}"
|
|
register: tmp_undercloud_passwords
|
|
vars:
|
|
password_paths:
|
|
- "{{ working_dir }}/tripleo-undercloud-passwords.yaml"
|
|
- "{{ working_dir }}/tripleo-deploy/undercloud/tripleo-undercloud-passwords.yaml"
|
|
|
|
- name: Setting undercloud outputs and password facts
|
|
set_fact:
|
|
undercloud_outputs: "{{ tmp_undercloud_outputs['content'] | b64decode }}"
|
|
undercloud_passwords: "{{ tmp_undercloud_passwords['content'] | b64decode }}"
|