Skip to content
Snippets Groups Projects
Commit 17f0ee77 authored by Karl Kornel's avatar Karl Kornel
Browse files

dns: Add support for NOT managing resolv.conf

This is important for systems using Puppet and DHCP, because DHCP renewals
rewrite resolv.conf, which then gets re-re-written by Puppet.
parent 59306250
No related branches found
No related tags found
No related merge requests found
unreleased (??) unreleased (??)
[dns] Add support for disabling Puppet management of resolv.conf, for
systems using DHCP (akkornel)
[remctl] Require remctl-server package be installed before installing [remctl] Require remctl-server package be installed before installing
xinetd config (akkornel) xinetd config (akkornel)
......
# Defines the DNS configuration of a system. # Defines the DNS configuration of a system.
class base::dns { # You may set $no_resolv_conf to prevent Puppet from overriding the system's
base::dns::resolv_conf { $::fqdn_lc: ensure => present } # resolv.conf file. This is helpful in DHCP environments.
# To enable, use Hiera to set base::dns::no_resolv_conf to "true".
class base::dns(
$no_resolv_conf = false
) {
if !$no_resolv_conf {
base::dns::resolv_conf { $::fqdn_lc: ensure => present }
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment