mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Fedora coreos networkmanager global dns and bootstrapping fix (#6577)
* remove podman cni plugin * configure networkamanger global dns * allow installation of python3-libselinux by disabling update repo temporary * remove ipv4 section because it is not a valid configuration
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: NetworkManager | Add nameservers to NM configuration
|
||||
ini_file:
|
||||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection
|
||||
section: ipv4
|
||||
option: dns
|
||||
path: /etc/NetworkManager/conf.d/dns.conf
|
||||
section: global-dns-domain-*
|
||||
option: servers
|
||||
value: "{{ ( coredns_server + nameservers|d([]) + cloud_resolver|d([])) | unique | join(';') }}"
|
||||
mode: '0600'
|
||||
backup: yes
|
||||
@@ -11,9 +11,9 @@
|
||||
|
||||
- name: NetworkManager | Add DNS search to NM configuration
|
||||
ini_file:
|
||||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection
|
||||
section: ipv4
|
||||
option: dns-search
|
||||
path: /etc/NetworkManager/conf.d/dns.conf
|
||||
section: global-dns
|
||||
option: searches
|
||||
value: "{{ ([ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([])) | join(';') }}"
|
||||
mode: '0600'
|
||||
backup: yes
|
||||
@@ -21,20 +21,10 @@
|
||||
|
||||
- name: NetworkManager | Add DNS options to NM configuration
|
||||
ini_file:
|
||||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection
|
||||
section: ipv4
|
||||
option: dns-options
|
||||
path: /etc/NetworkManager/conf.d/dns.conf
|
||||
section: global-dns
|
||||
option: options
|
||||
value: "ndots:{{ ndots }};timeout:2;attempts:2;"
|
||||
mode: '0600'
|
||||
backup: yes
|
||||
notify: Preinstall | update resolvconf for Fedora CoreOS
|
||||
|
||||
- name: NetworkManager | Ignore DNS auto configuration
|
||||
ini_file:
|
||||
path: /etc/NetworkManager/system-connections/default_connection.nmconnection
|
||||
section: ipv4
|
||||
option: ignore-auto-dns
|
||||
value: 'true'
|
||||
mode: '0600'
|
||||
backup: yes
|
||||
notify: Preinstall | update resolvconf for Fedora CoreOS
|
||||
|
||||
Reference in New Issue
Block a user