kubespray/roles/kubernetes/preinstall/tasks
Slavi Pantaleev cc03ca62be
Avoid empty "supersede domain-name-servers" directives for dhclient.conf (#10948)
Fixes https://github.com/kubernetes-sigs/kubespray/issues/10947

This patch aims to be minimal and intentionally:

- does not change the generation logic for `supersede_domain` and `supersede_search`
- does not change how `nameserverentries` (for NetworkManager) is built

It seems like `nameserverentries` in the "Generate nameservers for resolvconf, including cluster DNS"
task is built the same way as `dhclient_supersede_nameserver_entries_list`.
However, `nameserverentries` in the "Generate nameservers for resolvconf, not including cluster DNS"
task (below) is built differently for some reason. It includes `configured_nameservers` as well.
Due to these differences, I have refrained from reusing the same building logic
(`dhclient_supersede_nameserver_entries_list`) for both.

If the `configured_nameservers` addition can be removed or made to apply
to dhclient as well, we could potentially build a single list and then
generate the `nameserverentries` and `supersede_nameserver` strings from it.
2024-08-06 03:38:51 -07:00
..
0010-swapoff.yml fix disable swap in centos (#10751) 2024-01-08 17:38:14 +01:00
0020-set_facts.yml Avoid empty "supersede domain-name-servers" directives for dhclient.conf (#10948) 2024-08-06 03:38:51 -07:00
0040-verify-settings.yml Allow empty kube_node group (#11248) 2024-05-30 03:01:38 -07:00
0050-create_directories.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0060-resolvconf.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0061-systemd-resolved.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0062-networkmanager-unmanaged-devices.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0063-networkmanager-dns.yml Use supported version of fedora in CI (#10108) 2023-08-08 00:50:12 -07:00
0070-system-packages.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0080-system-configurations.yml Rename systemd module to systemd_service (#11396) 2024-07-26 01:11:39 -07:00
0081-ntp-configurations.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0090-etchosts.yml Improving yamllint configuration (#11389) 2024-07-25 18:42:20 -07:00
0100-dhclient-hooks.yml Avoid empty "supersede domain-name-servers" directives for dhclient.conf (#10948) 2024-08-06 03:38:51 -07:00
0110-dhclient-hooks-undo.yml Run 0100-dhclient-hooks if dhcpclient is enabled (#8658) 2022-03-29 00:11:11 -07:00
0120-growpart-azure-centos-7.yml Resolve ansible-lint name errors (#10253) 2023-07-26 07:36:22 -07:00
main.yml Add 'system-packages' tag to control installing packages from OS repositories (#10872) 2024-05-30 04:25:21 -07:00