wip
This commit is contained in:
parent
d2ea2ccd9c
commit
7d68291762
1 changed files with 2 additions and 16 deletions
|
@ -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',
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue