summaryrefslogtreecommitdiffstats
path: root/roles/openshift_common/defaults
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-03-17 11:09:12 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-03-18 15:47:05 -0400
commit81628f94bad4b303212bf77752f62c03728e0168 (patch)
treeead84a72fd3a5d94cc1ab9283392ce80fa5fd692 /roles/openshift_common/defaults
parentdb9cf8ef4f030f30391e021f360fe0c3db1dce74 (diff)
downloadopenshift-81628f94bad4b303212bf77752f62c03728e0168.tar.gz
openshift-81628f94bad4b303212bf77752f62c03728e0168.tar.bz2
openshift-81628f94bad4b303212bf77752f62c03728e0168.tar.xz
openshift-81628f94bad4b303212bf77752f62c03728e0168.zip
Fix hostname handling
- always set hostname if hostname does not match openshift_hostname - Use local IP instead of public IP as hostname for workaround
Diffstat (limited to 'roles/openshift_common/defaults')
-rw-r--r--roles/openshift_common/defaults/main.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/roles/openshift_common/defaults/main.yml b/roles/openshift_common/defaults/main.yml
index a541591fb..eb6edbc03 100644
--- a/roles/openshift_common/defaults/main.yml
+++ b/roles/openshift_common/defaults/main.yml
@@ -1,8 +1,7 @@
---
-openshift_bind_ip: "{{ ansible_default_ipv4.address }}"
openshift_debug_level: 0
# TODO: Once openshift stops resolving hostnames for node queries remove
# this...
openshift_hostname_workaround: true
-openshift_hostname: "{{ openshift_public_ip if openshift_hostname_workaround else ansible_fqdn }}"
+openshift_hostname: "{{ ansible_default_ipv4.address if openshift_hostname_workaround else ansible_fqdn }}"