Commit 8a725460 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

apache-frontend: fix replicate to provide name to nodes

parent 9bb3849a
......@@ -74,7 +74,7 @@ mode = 0644
[template-apache-replicate]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-apache-replicate.cfg.in
md5sum = da22cc3b2095766c5e14b29afab2b760
md5sum = 140b3be4ce46aa18b33aea5d379d90e9
mode = 0644
[template-slave-list]
......
......@@ -99,6 +99,7 @@ state = {{ frontend_request.get('state') }}
{% set slave_configuration_dict = frontend_request.get('config') %}
{% do slave_configuration_dict.update(**slapparameter_dict) %}
{% do slave_configuration_dict.__setitem__(slave_list_name, json_module.dumps(authorized_slave_list)) %}
{% do slave_configuration_dict.__setitem__("frontend-name", frontend_request.get('name')) %}
config-_ = {{ json_module.dumps(slave_configuration_dict) }}
{% if frontend_request.get('sla') %}
sla = {{ ' '.join(frontend_request.get('sla').keys()) }}
......
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