소스 검색

Merge pull request #4257 from dmsimard/hostname_validation

Merged by openshift-bot
OpenShift Bot 7 년 전
부모
커밋
daf8516f02
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      playbooks/common/openshift-cluster/validate_hostnames.yml

+ 3 - 1
playbooks/common/openshift-cluster/validate_hostnames.yml

@@ -13,4 +13,6 @@
     pause:
       prompt: "The hostname \"{{ openshift.common.hostname }}\" for \"{{ ansible_nodename }}\" doesn't resolve to an ip address owned by this host. Please set openshift_hostname variable to a hostname that when resolved on the host in question resolves to an IP address matching an interface on this host. This host will fail liveness checks for pods utilizing hostPorts, press ENTER to continue or CTRL-C to abort."
       seconds: "{{ 10 if openshift_override_hostname_check | default(false) | bool else omit }}"
-    when: lookupip.stdout not in ansible_all_ipv4_addresses
+    when:
+    - lookupip.stdout != '127.0.0.1'
+    - lookupip.stdout not in ansible_all_ipv4_addresses