* Convert exoscale tf provider to new version (#10646) This is untested. It passes terraform validate to un-broke the CI. * specify pyyaml version to 5.3.1 Signed-off-by: bo.jiang <bo.jiang@daocloud.io> * Migrate CI_BUILD_ID to CI_JOB_ID and CI_BUILD_REF to CI_COMMIT_SHA (#10063) * Use supported version of fedora in CI (#10108) * tests: replace fedora35 with fedora37 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: replace fedora36 with fedora38 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * docs: update fedora version in docs Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * molecule: upgrade fedora version Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: upgrade fedora images for vagrant and kubevirt Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * vagrant: workaround to fix private network ip address in fedora Fedora stop supporting syconfig network script so we added a workaround here https://github.com/hashicorp/vagrant/issues/12762#issuecomment-1535957837 to fix it. * netowrkmanager: do not configure dns if using systemd-resolved We should not configure dns if we point to systemd-resolved. Systemd-resolved is using NetworkManager to infer the upstream DNS server so if we set NetworkManager to 127.0.0.53 it will prevent systemd-resolved to get the correct network DNS server. Thus if we are in this case we just don't set this setting. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * image-builder: update centos7 image Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * gitlab-ci: mark fedora packet jobs as allow failure Fedora networking is still broken on Packet, let's mark it as allow failure for now. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: bo.jiang <bo.jiang@daocloud.io> Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> Co-authored-by: Max Gautier <mg@max.gautier.name> Co-authored-by: Florian Ruynat <16313165+floryut@users.noreply.github.com> Co-authored-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
---
|
|
- name: NetworkManager | Add nameservers to NM configuration
|
|
ini_file:
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
section: global-dns-domain-*
|
|
option: servers
|
|
value: "{{ nameserverentries }}"
|
|
mode: '0600'
|
|
backup: yes
|
|
when:
|
|
- nameserverentries != "127.0.0.53" or systemd_resolved_enabled.rc != 0
|
|
notify: Preinstall | update resolvconf for networkmanager
|
|
|
|
- name: set default dns if remove_default_searchdomains is false
|
|
set_fact:
|
|
default_searchdomains: ["default.svc.{{ dns_domain }}", "svc.{{ dns_domain }}"]
|
|
when: not remove_default_searchdomains|default()|bool or (remove_default_searchdomains|default()|bool and searchdomains|default([])|length==0)
|
|
|
|
- name: NetworkManager | Add DNS search to NM configuration
|
|
ini_file:
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
section: global-dns
|
|
option: searches
|
|
value: "{{ (default_searchdomains|default([]) + searchdomains|default([])) | join(',') }}"
|
|
mode: '0600'
|
|
backup: yes
|
|
notify: Preinstall | update resolvconf for networkmanager
|
|
|
|
- name: NetworkManager | Add DNS options to NM configuration
|
|
ini_file:
|
|
path: /etc/NetworkManager/conf.d/dns.conf
|
|
section: global-dns
|
|
option: options
|
|
value: "ndots:{{ ndots }};timeout:{{ dns_timeout|default('2') }};attempts:{{ dns_attempts|default('2') }};"
|
|
mode: '0600'
|
|
backup: yes
|
|
notify: Preinstall | update resolvconf for networkmanager
|