-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-resolved cannot be fully disabled because /etc/resolv.conf is managed #203
Comments
Agree it would be nice to get this or someway of safely exiting Background is that if you stop
Then both of the possible targets of
so setting In a non puppet world it would be
but that is very OS dependent of course. How about something like exec{'install_working_resolve_conf':
command => `cp /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`
onlyif => `resolv.conf is a symlink one of /run/systemd/resolve/stub-resolv.conf or /run/systemd/resolve/resolv.conf`
} all a bit fiddly. |
On the very fine point I agree when the service is stopped |
It feels to me like we should document that |
Added support for AlmaLinux 8
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Catalog compilation fails with with a duplicate resource declaration error.
What behaviour did you expect instead
File[/etc/resolv.conf]
should not be managed whensystemd-resolved
is managed to thestopped
state.Output log
Any additional information you'd like to impart
Just stopping systemd-resolved on a system that has had it configured completely breaks name resolution. Something else needs to manage /etc/resolv.conf afterward, or at least to update it once, but the module interferes with that.
For context, on domain-joined Ubuntu 20.04, systemd-resolved needs to be disabled in order for sssd to authenticate users against Active Directory.
Here is the RSpec test used to demonstrate the issue:
The text was updated successfully, but these errors were encountered: