Fix dns issues in kargo
Change-Id: I1ceeb7ed8d13db586d78e99d939456889807ab27 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
ae589babab
commit
26725acd4e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue