diff --git a/software/apache-frontend/instance-apache-replicate.cfg.in b/software/apache-frontend/instance-apache-replicate.cfg.in index 20bbde84626edf9640638bbf0ef21cc2e0b9f448..f208c30161215618c5dbd27744e360a036fac8d9 100644 --- a/software/apache-frontend/instance-apache-replicate.cfg.in +++ b/software/apache-frontend/instance-apache-replicate.cfg.in @@ -12,6 +12,8 @@ context = key slave_instance_list slap-parameter:slave_instance_list ${:extra-context} +################################ +## Configure number of frontend {% set part_list = [] -%} {% set single_type_key = 'single-' %} {% if slap_software_type in ("replicate", "RootSoftwareInstance") %} @@ -30,6 +32,8 @@ context = {% do slapparameter_dict.__setitem__(sla_computer_apache_1_key, '${slap-connection:computer-id}') -%} {% endif -%} +############################### +# Configure frontend allocation # Here we request individualy each frontend. # The presence of sla parameters is checked and added if found {% for i in range(1, frontend_quantity + 1) -%} @@ -57,6 +61,9 @@ sla-{{ parameter }} = {{ slapparameter_dict.pop( sla_key + parameter ) }} {% endif -%} {% endfor -%} +############################### +# Prepare Slave List + # Prepare states {% set slave_deploy = slave_list_parameter.get('deploy') %} {% set slave_test = slave_list_parameter.get('test') %}