Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Addressed some issues setting up the install from behind a proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmkraus committed Apr 30, 2021
1 parent 13b7913 commit 74b92ed
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/playbooks/create.d/install-repos/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
rhcos_images_initramfs: "{{ lookup('ini', 'initramfs section=cluster file=/app/versions.ini') }}"
rhcos_images_rootfs: "{{ lookup('ini', 'rootfs section=cluster file=/app/versions.ini') }}"
rhcos_images_image: "{{ lookup('ini', 'image section=cluster file=/app/versions.ini') }}"
rhcos_images_http_proxy: "{{ proxy_http }}"
rhcos_images_https_proxy: "{{ proxy_https }}"
rhcos_images_noproxy: "{{ proxy_noproxy }}"
rhcos_images_https_validate: "{{ proxy_ca == '' }}"

- name: create pxelinux kickstart files
hosts: cluster
Expand Down
1 change: 1 addition & 0 deletions app/roles/openshift-installer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
dest: "{{ openshift_installer_dir }}/openshift-installer.tar.gz"
mode: 0644
unsafe_writes: yes
validate_certs: "{{ openshift_installer_proxy_ca == '' }}"
register: pkg_download

- name: extract openshift installer
Expand Down
4 changes: 4 additions & 0 deletions app/roles/rhcos-images/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ rhcos_images_image: ""
rhcos_images_bootstrap_ign: ""
rhcos_images_master_ign: ""
rhcos_images_worker_ign: ""
rhcos_images_https_proxy: ""
rhcos_images_http_proxy: ""
rhcos_images_https_validate: True
rhcos_images_noproxy: ""
10 changes: 10 additions & 0 deletions app/roles/rhcos-images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
uri:
url: "{{ rhcos_images_repo }}/sha256sum.txt"
return_content: yes
validate_certs: "{{ rhcos_images_https_validate }}"
environment:
HTTP_PROXY: "{{ rhcos_images_http_proxy }}"
HTTPS_PROXY: "{{ rhcos_images_https_proxy }}"
NO_PROXY: "{{ rhcos_images_noproxy }}"
register: release_checksums
changed_when: false

Expand All @@ -31,6 +36,11 @@
dest: "{{ item.dest }}"
checksum: "sha256:{{ item.checksum }}"
mode: 0555
validate_certs: "{{ rhcos_images_https_validate }}"
environment:
HTTP_PROXY: "{{ rhcos_images_http_proxy }}"
HTTPS_PROXY: "{{ rhcos_images_https_proxy }}"
NO_PROXY: "{{ rhcos_images_noproxy }}"
loop: "{{ download_images }}"
loop_control:
label: "{{ item.dest }}"
Expand Down

0 comments on commit 74b92ed

Please sign in to comment.