- use puppetdbquery module to query puppetdb for resolvers - move dns client config to profiles::dns::base - manage the /etc/resolv.conf file
15 lines
311 B
Puppet
15 lines
311 B
Puppet
# profiles::dns::resolvconf
|
|
class profiles::dns::resolvconf (
|
|
Array[String] $nameservers,
|
|
Array[String] $search_domains,
|
|
) {
|
|
|
|
file { '/etc/resolv.conf':
|
|
ensure => file,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
content => template('profiles/dns/resolvconf.erb'),
|
|
}
|
|
}
|