bifrost/playbooks/roles/bifrost-ironic-install/tasks/get_ipxe.yml
Markos Chandras c180998193 playbooks: roles: bifrost-ironic-install: Retry failed PXE downloads
Downloading PXE files could fail for various reasons which may not
always be valid so try to workaround that by simply trying to get the
files a few more times before giving up. This aims to workaround the
following issue which appears from time to time in Jenkins builds
even though the remote certificate and the host's software remain the
same.

"Failed to validate the SSL certificate for boot.ipxe.org:443. Make sure
your managed systems have a valid CA certificate installed. You can use
validate_certs=False if you do not need to confirm the servers identity
but this is unsafe and not recommended. Paths checked for this platform:
/etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs,
/usr/share/ca-certificates/cacert.org, /etc/ansible"

However, it may also assist with general networking issues as well.

Change-Id: Ia2351ed2c7f1dfe26c17770250d150f26432086b
2017-03-07 01:57:41 +00:00

36 lines
1.0 KiB
YAML

# Copyright (c) 2016 Hewlett Packard Enterprise Development LP.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: Create {{ ipxe_dir }}
file:
name={{ ipxe_dir }}
state=directory
owner=root
group=root
mode=0755
- name: Get ipxe files
get_url:
url: "https://boot.ipxe.org/{{ item }}"
dest: "{{ ipxe_dir }}/{{ item }}"
force: yes
register: ipxe_files_download_done
until: ipxe_files_download_done|succeeded
retries: 5
delay: 10
with_items:
- undionly.kpxe
- ipxe.lkrn