This commit is contained in:
mwiegand 2021-11-06 12:02:52 +01:00
parent d2ea2ccd9c
commit 7d68291762

View file

@ -1,17 +1,3 @@
h = repo.libs.hashable.hashable
@metadata_reactor.provides(
'bind/acme_hostname',
)
def acme_hostname(metadata):
return {
'bind': {
'acme_hostname': 'acme.'+ metadata.get('bind/hostname'),
},
}
@metadata_reactor.provides(
'dns',
)
@ -24,12 +10,12 @@ def acme_records(metadata):
f'_acme-challenge.{domain}': {
'CNAME': {f"{domain}.{metadata.get('bind/acme_hostname')}."},
}
for domain in node.metadata.get('letsencrypt/domains')
for other_node in repo.nodes
for domain in other_node.metadata.get('letsencrypt/domains', {}).keys()
}
}
@metadata_reactor.provides(
'bind/zones',
)