wip
This commit is contained in:
parent
c1ad072f8e
commit
919169d1dc
2 changed files with 4 additions and 3 deletions
|
@ -53,6 +53,7 @@ svc_systemd['bind9'] = {}
|
||||||
|
|
||||||
actions['named-checkconf'] = {
|
actions['named-checkconf'] = {
|
||||||
'command': 'named-checkconf -z',
|
'command': 'named-checkconf -z',
|
||||||
|
'unless': 'named-checkconf -z',
|
||||||
'needs': [
|
'needs': [
|
||||||
'svc_systemd:bind9',
|
'svc_systemd:bind9',
|
||||||
]
|
]
|
||||||
|
|
|
@ -19,12 +19,12 @@ defaults = {
|
||||||
def dns(metadata):
|
def dns(metadata):
|
||||||
return {
|
return {
|
||||||
'dns': {
|
'dns': {
|
||||||
'ns.sublimity.de': {
|
metadata.get('bind/domain'): {
|
||||||
'A': [
|
'A': [
|
||||||
str(ip_interface(metadata.get('network/ipv4')).ip)
|
str(ip_interface(metadata.get('network/ipv4')).ip),
|
||||||
],
|
],
|
||||||
'AAAA': [
|
'AAAA': [
|
||||||
str(ip_interface(metadata.get('network/ipv6')).ip)
|
str(ip_interface(metadata.get('network/ipv6')).ip),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue