Add ping_access_ip; allows to disable ping test (#7020)

In some environments, it might not be possible to ping the IP address
of the nodes, e.g., because ICMP echo is blocked.

This commit allows kubespray to be configured to disable the ping
check, while performing all other checks.
This commit is contained in:
Cristian Klein 2021-01-11 15:15:08 +01:00 committed by GitHub
parent 1d7d84540f
commit b9077d3ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View file

@ -109,3 +109,6 @@ no_proxy_exclude_workers: false
# rh_subscription_usage: "Development" # rh_subscription_usage: "Development"
# rh_subscription_role: "Red Hat Enterprise Server" # rh_subscription_role: "Red Hat Enterprise Server"
# rh_subscription_sla: "Self-Support" # rh_subscription_sla: "Self-Support"
## Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
# ping_access_ip: true

View file

@ -56,3 +56,6 @@ yum_repo_dir: /etc/yum.repos.d
# number of times package install task should be retried # number of times package install task should be retried
pkg_install_retries: 4 pkg_install_retries: 4
# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
ping_access_ip: true

View file

@ -114,6 +114,7 @@
when: when:
- access_ip is defined - access_ip is defined
- not ignore_assert_errors - not ignore_assert_errors
- ping_access_ip
- name: Stop if RBAC is not enabled when dashboard is enabled - name: Stop if RBAC is not enabled when dashboard is enabled
assert: assert: