From 4b7347f1cdd6730b79fe7113661e43db5a8bbb2a Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Fri, 21 Oct 2016 12:59:50 +0300 Subject: [PATCH] fix dnsmasq template cloud_provider lookup --- roles/dnsmasq/templates/01-kube-dns.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/dnsmasq/templates/01-kube-dns.conf.j2 b/roles/dnsmasq/templates/01-kube-dns.conf.j2 index aed68a6fe..4d73eebdb 100644 --- a/roles/dnsmasq/templates/01-kube-dns.conf.j2 +++ b/roles/dnsmasq/templates/01-kube-dns.conf.j2 @@ -13,7 +13,7 @@ server=/{{ dns_domain }}/{{ skydns_server }} {% for srv in upstream_dns_servers %} server={{ srv }} {% endfor %} -{% elif cloud_provider == "gce" %} +{% elif cloud_provider is defined and cloud_provider == "gce" %} server=169.254.169.254 {% else %} server=8.8.8.8