- add eyaml to hiera.yaml - consolidate all paths into single tree - change to new profiles::dns::client wrapper - change to new profiles::dns::record wrapper - change to use concat method to build zone file
24 lines
493 B
Puppet
24 lines
493 B
Puppet
# defines the base record that will be exported
|
|
define profiles::dns::record (
|
|
String $record,
|
|
Enum[
|
|
'PTR',
|
|
'A',
|
|
'CNAME',
|
|
'MX',
|
|
'NS',
|
|
'SRV',
|
|
'TXT'
|
|
] $type,
|
|
String $value,
|
|
String $zone,
|
|
Integer $order,
|
|
Stdlib::AbsolutePath $basedir = lookup('profiles::dns::master::basedir'),
|
|
) {
|
|
@@concat::fragment { "${zone}_${name}":
|
|
target => "${basedir}/${zone}.conf",
|
|
content => "${record} IN ${type} ${value}\n",
|
|
order => $order,
|
|
}
|
|
}
|