feat: find resolvers by role
- use puppetdbquery module to query puppetdb for resolvers - move dns client config to profiles::dns::base - manage the /etc/resolv.conf file
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# 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'),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user