Project

General

Profile

Download (747 Bytes) Statistics
| Branch: | Tag: | Revision:
# Configure the DNS component
class foreman_proxy::proxydns {
class { 'dns':
forwarders => $foreman_proxy::dns_forwarders,
}

package { $foreman_proxy::params::nsupdate:
ensure => installed,
}

# puppet fact names are converted from ethX.X and ethX:X to ethX_X
# so for alias and vlan interfaces we have to modify the name accordingly
$interface_fact_name = regsubst($foreman_proxy::dns_interface, '[.:]', '_')
$ip = inline_template("<%= scope.lookupvar('::ipaddress_${interface_fact_name}') %>")

dns::zone { $foreman_proxy::dns_zone:
soa => $::fqdn,
reverse => false,
soaip => $ip,
}

dns::zone { $foreman_proxy::dns_reverse:
soa => $::fqdn,
reverse => true,
soaip => $ip,
}
}
(7-7/12)