Skip to content
Snippets Groups Projects

Draft: Add DNS role/profile based on PowerDNS

Files

+ 25
0
 
# DNS profile
 
class profile::dns (
 
Boolean $authoritative = true,
 
String $zone = 'domain.tld',
 
String $contact = 'contact.domain.tls',
 
String $ns = $::fqdn,
 
) {
 
 
include powerdns
 
 
class { 'powerdns':
 
backend => 'sqlite',
 
db_file => '/var/spool/pdns/powerdns.sqlite3',
 
#custom_repo => true,
 
#authoritative => $authoritative,
 
}
 
 
powerdns::config { 'api':
 
ensure => present,
 
setting => 'api',
 
value => 'yes',
 
type => $authoritative,
 
}
 
 
}
Loading