Add mirror_info.sh creation for supplemental node repo setup
As discussed in related-bug the supplemental node used in the IPA jobs is not using the mirror_info.sh so not using mirrors in the repos created by repo-setup. This adds a slurp to grab the mirrors config from the undercloud before repo-setup on supplemental. Test and results at [1]. [1] https://review.rdoproject.org/r/c/testproject/+/40286/1#message-f825e6369163ad1f5aa98eb7c6c67b2798d5788b Related-Bug: 1964457 Change-Id: I7b3c6f0a3b9fa7114670656df7b39cef8047fd85
This commit is contained in:
parent
90682142fa
commit
56f0af5b7e
@ -29,6 +29,29 @@
|
|||||||
- freeipa-setup
|
- freeipa-setup
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
- name: Create /etc/ci directory for supplemental
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
path: /etc/ci
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Slurp the contents of mirror_info.sh from undercloud
|
||||||
|
become: true
|
||||||
|
slurp:
|
||||||
|
src: '/etc/ci/mirror_info.sh'
|
||||||
|
register: mirror_info_sh
|
||||||
|
delegate_to: undercloud
|
||||||
|
|
||||||
|
- name: Write mirror_info.sh contents to file on supplemental
|
||||||
|
become: true
|
||||||
|
copy:
|
||||||
|
dest: '/etc/ci/mirror_info.sh'
|
||||||
|
content: |
|
||||||
|
{{ mirror_info_sh['content'] | b64decode }}
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: repo-setup
|
name: repo-setup
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
Reference in New Issue
Block a user