wip
This commit is contained in:
parent
3246f67a81
commit
35c1db0ec6
4 changed files with 13 additions and 2 deletions
|
@ -25,6 +25,7 @@ def acme_records(metadata):
|
||||||
@metadata_reactor.provides(
|
@metadata_reactor.provides(
|
||||||
'bind/acls/acme',
|
'bind/acls/acme',
|
||||||
'bind/keys/acme',
|
'bind/keys/acme',
|
||||||
|
'bind/views/internal/acl',
|
||||||
'bind/views/external/zones',
|
'bind/views/external/zones',
|
||||||
)
|
)
|
||||||
def acme_zone(metadata):
|
def acme_zone(metadata):
|
||||||
|
@ -46,6 +47,11 @@ def acme_zone(metadata):
|
||||||
'acme': {},
|
'acme': {},
|
||||||
},
|
},
|
||||||
'views': {
|
'views': {
|
||||||
|
'internal': {
|
||||||
|
'acl': {
|
||||||
|
'! key acme',
|
||||||
|
},
|
||||||
|
},
|
||||||
'external': {
|
'external': {
|
||||||
'zones': {
|
'zones': {
|
||||||
metadata.get('bind/acme_zone'): {
|
metadata.get('bind/acme_zone'): {
|
||||||
|
|
|
@ -42,7 +42,7 @@ view "${view_name}" {
|
||||||
% if type == 'slave':
|
% if type == 'slave':
|
||||||
masters { ${master_ip}; };
|
masters { ${master_ip}; };
|
||||||
% endif
|
% endif
|
||||||
% if zone_conf.get('allow_update', False):
|
% if type == 'master' and zone_conf.get('allow_update', False):
|
||||||
allow-update {
|
allow-update {
|
||||||
% for allow_update in zone_conf['allow_update']:
|
% for allow_update in zone_conf['allow_update']:
|
||||||
${allow_update};
|
${allow_update};
|
||||||
|
|
|
@ -28,7 +28,7 @@ files = {
|
||||||
'/etc/dehydrated/hook.sh': {
|
'/etc/dehydrated/hook.sh': {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': {
|
||||||
'server': ip_interface(acme_node.metadata.get('network/external/ipv4')).ip,
|
'server': ip_interface(acme_node.metadata.get('network/internal/ipv4')).ip,
|
||||||
'zone': acme_node.metadata.get('bind/acme_zone'),
|
'zone': acme_node.metadata.get('bind/acme_zone'),
|
||||||
'acme_key_name': 'acme',
|
'acme_key_name': 'acme',
|
||||||
'acme_key': acme_node.metadata.get('bind/keys/acme/token'),
|
'acme_key': acme_node.metadata.get('bind/keys/acme/token'),
|
||||||
|
|
|
@ -40,6 +40,11 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'letsencrypt': {
|
||||||
|
'domains': {
|
||||||
|
'test12.ckn.li': {},
|
||||||
|
}
|
||||||
|
},
|
||||||
'java': {
|
'java': {
|
||||||
'version': 11,
|
'version': 11,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue