From 1e22c83f0fa7b3f079f38a88ca356cec1e024d9a Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Wed, 7 Nov 2018 21:38:19 +0100 Subject: [PATCH] kube_override_hostname must be in kubernetes/master role defaults (#3647) --- roles/kubernetes/master/defaults/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/kubernetes/master/defaults/main.yml b/roles/kubernetes/master/defaults/main.yml index 58cd99f6d..8bd1a13cf 100644 --- a/roles/kubernetes/master/defaults/main.yml +++ b/roles/kubernetes/master/defaults/main.yml @@ -137,3 +137,10 @@ kube_encryption_algorithm: "aescbc" # You may want to use ca.pem depending on your situation kube_front_proxy_ca: "front-proxy-ca.pem" + +# If non-empty, will use this string as identification instead of the actual hostname +kube_override_hostname: >- + {%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%} + {%- else -%} + {{ inventory_hostname }} + {%- endif -%}