Fix dns issues in kargo

Change-Id: I1ceeb7ed8d13db586d78e99d939456889807ab27
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2016-08-19 11:02:35 +02:00
parent ae589babab
commit 26725acd4e
2 changed files with 6 additions and 17 deletions

View File

@ -16,3 +16,9 @@ use_hyperkube_cni: true
etcd_version: "v3.0.1"
calico_version: "v0.20.0"
calico_cni_version: "v1.3.1"
# Custom (additional) DNS settings
searchdomains:
- ccp.svc.cluster.local
nameservers:
- 8.8.8.8

View File

@ -19,20 +19,3 @@
- name: Update hostname via hostnamectl
command: hostnamectl set-hostname {{ inventory_hostname }}
when: updated_etc_hosts.changed
# FIXME(mattymo): Fix in kargo
- name: Purge resolvconf
apt:
name: resolvconf
force: yes
state: absent
- name: Gather info about /etc/resolv.conf
stat:
path: /etc/resolv.conf
register: etcresolvconf
- name: Fix /etc/resolv.conf symlink
shell: "cp --remove-destination `realpath /etc/resolv.conf` /etc/resolv.conf"
when: etcresolvconf.stat.islnk