bundles/powerdns: make sure every dns server is able to resolve every other dns server
This commit is contained in:
parent
a33d8e4201
commit
b70f9c9c9d
1 changed files with 16 additions and 0 deletions
|
@ -102,3 +102,19 @@ def generate_dns_entries_for_nodes(metadata):
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def hosts_entries_for_all_dns_servers(metadata):
|
||||
entries = {}
|
||||
|
||||
for rnode in repo.nodes_in_group('dns'):
|
||||
entries[rnode.metadata.get('external_ipv4')] = {
|
||||
rnode.metadata.get('powerdns/my_hostname', node.hostname)
|
||||
}
|
||||
|
||||
return {
|
||||
'hosts': {
|
||||
'entries': entries,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue