Merge "Make ns*.openstack.org authoritative slaves"
This commit is contained in:
commit
bd56a81619
@ -853,13 +853,29 @@ node /^ns\d+\.openstack\.org$/ {
|
|||||||
class { 'openstack_project::server':
|
class { 'openstack_project::server':
|
||||||
sysadmins => hiera('sysadmins', []),
|
sysadmins => hiera('sysadmins', []),
|
||||||
iptables_public_udp_ports => [53],
|
iptables_public_udp_ports => [53],
|
||||||
|
iptables_public_tcp_ports => [53],
|
||||||
|
}
|
||||||
|
|
||||||
|
$tsig_key = hiera('tsig_key', {})
|
||||||
|
if $tsig_key != {} {
|
||||||
|
$tsig_name = 'tsig'
|
||||||
|
nsd::tsig { 'tsig':
|
||||||
|
algo => $tsig_key[algorithm],
|
||||||
|
data => $tsig_key[secret],
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$tsig_name = undef
|
||||||
}
|
}
|
||||||
|
|
||||||
class { '::nsd':
|
class { '::nsd':
|
||||||
|
ip_addresses => [ $::ipaddress, $::ipaddress6 ],
|
||||||
zones => {
|
zones => {
|
||||||
'master_zones' => {
|
'adns1_zones' => {
|
||||||
'zones' => ['zuul-ci.org'],
|
allow_notify => dns_a('adns1.openstack.org'),
|
||||||
},
|
masters => dns_a('adns1.openstack.org'),
|
||||||
|
zones => ['zuul-ci.org'],
|
||||||
|
tsig_name => $tsig_name,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user