Commit 9dddee53 authored by Joanne Hugé's avatar Joanne Hugé

software/galene: use automated_local_dns as URL for local DNS slaves

parent 0957d73b
...@@ -19,4 +19,4 @@ md5sum = 0d6db8da45bbdf311f9c6a2f916045a2 ...@@ -19,4 +19,4 @@ md5sum = 0d6db8da45bbdf311f9c6a2f916045a2
[template-default] [template-default]
filename = instance-default.cfg.in filename = instance-default.cfg.in
md5sum = 452599c3067904a9decb8c5dba55eb46 md5sum = 339a47644377509a754c9ead038728a6
...@@ -11,7 +11,7 @@ parts = ...@@ -11,7 +11,7 @@ parts =
monitor-base monitor-base
port-listening-promise port-listening-promise
galene-service galene-service
{% if slapparameter_dict.get('dns_sr_url', '') %} {% if slapparameter_dict.get('request_dns', '') %}
request-dns-entry request-dns-entry
{% endif %} {% endif %}
...@@ -27,7 +27,7 @@ recipe = slapos.cookbook:publish ...@@ -27,7 +27,7 @@ recipe = slapos.cookbook:publish
url = https://[$${galene-wrapper:ip}]:$${galene-wrapper:port} url = https://[$${galene-wrapper:ip}]:$${galene-wrapper:port}
admin-user = $${admin-password:username} admin-user = $${admin-password:username}
admin-password = $${admin-password:passwd} admin-password = $${admin-password:passwd}
{% if slapparameter_dict.get('dns_sr_url', '') %} {% if slapparameter_dict.get('request_dns', '') %}
domain-url = https://$${request-dns-entry:connection-domain}:$${galene-wrapper:port} domain-url = https://$${request-dns-entry:connection-domain}:$${galene-wrapper:port}
{% endif %} {% endif %}
...@@ -131,11 +131,11 @@ name = galene-port-listening.py ...@@ -131,11 +131,11 @@ name = galene-port-listening.py
config-host = $${slap-configuration:ipv6-random} config-host = $${slap-configuration:ipv6-random}
config-port = 8443 config-port = 8443
{% if slapparameter_dict.get('dns_sr_url', '') %} {% if slapparameter_dict.get('request_dns', '') %}
[request-dns-entry] [request-dns-entry]
name = dns-galene-entry name = dns-galene-entry
recipe = slapos.cookbook:request.serialised recipe = slapos.cookbook:request.serialised
software-url = {{ slapparameter_dict['dns_sr_url'] }} software-url = automated_local_dns
software-type = core-network software-type = core-network
server-url = {{ slap_connection['server-url'] }} server-url = {{ slap_connection['server-url'] }}
computer-id = {{ slap_connection['computer-id'] }} computer-id = {{ slap_connection['computer-id'] }}
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
"type": "boolean", "type": "boolean",
"default": true "default": true
}, },
"dns_sr_url": { "request_dns": {
"default": "", "title": "Request DNS",
"title": "DNS SR URL", "description": "Request local DNS to a core network running on the same node",
"description": "URL of the SR running the DNS server", "type": "boolean",
"type": "string" "default": true
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment