Merge pull request #917 from mattymo/rkt_resolvconf

Fix setting resolvconf when using rkt deploy mode
This commit is contained in:
Matthew Mosesohn 2017-01-19 18:30:21 +03:00 committed by GitHub
commit 0ccc2555d3

View file

@ -17,16 +17,16 @@
default_resolver: >-
{%- if cloud_provider is defined and cloud_provider == 'gce' -%}169.254.169.254{%- else -%}8.8.8.8{%- endif -%}
- name: check kubelet
- name: check if kubelet is configured
stat:
path: "{{ bin_dir }}/kubelet"
register: kubelet
path: "{{ kube_config_dir }}/kubelet.env"
register: kubelet_configured
changed_when: false
- name: check if early DNS configuration stage
set_fact:
dns_early: >-
{%- if kubelet.stat.exists -%}false{%- else -%}true{%- endif -%}
{%- if kubelet_configured.stat.exists -%}false{%- else -%}true{%- endif -%}
- name: target resolv.conf files
set_fact: