Commit 879ef4ac authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

apche-frontend: add comments

parent b3938bf6
...@@ -12,6 +12,8 @@ context = ...@@ -12,6 +12,8 @@ context =
key slave_instance_list slap-parameter:slave_instance_list key slave_instance_list slap-parameter:slave_instance_list
${:extra-context} ${:extra-context}
################################
## Configure number of frontend
{% set part_list = [] -%} {% set part_list = [] -%}
{% set single_type_key = 'single-' %} {% set single_type_key = 'single-' %}
{% if slap_software_type in ("replicate", "RootSoftwareInstance") %} {% if slap_software_type in ("replicate", "RootSoftwareInstance") %}
...@@ -30,6 +32,8 @@ context = ...@@ -30,6 +32,8 @@ context =
{% do slapparameter_dict.__setitem__(sla_computer_apache_1_key, '${slap-connection:computer-id}') -%} {% do slapparameter_dict.__setitem__(sla_computer_apache_1_key, '${slap-connection:computer-id}') -%}
{% endif -%} {% endif -%}
###############################
# Configure frontend allocation
# Here we request individualy each frontend. # Here we request individualy each frontend.
# The presence of sla parameters is checked and added if found # The presence of sla parameters is checked and added if found
{% for i in range(1, frontend_quantity + 1) -%} {% for i in range(1, frontend_quantity + 1) -%}
...@@ -57,6 +61,9 @@ sla-{{ parameter }} = {{ slapparameter_dict.pop( sla_key + parameter ) }} ...@@ -57,6 +61,9 @@ sla-{{ parameter }} = {{ slapparameter_dict.pop( sla_key + parameter ) }}
{% endif -%} {% endif -%}
{% endfor -%} {% endfor -%}
###############################
# Prepare Slave List
# Prepare states # Prepare states
{% set slave_deploy = slave_list_parameter.get('deploy') %} {% set slave_deploy = slave_list_parameter.get('deploy') %}
{% set slave_test = slave_list_parameter.get('test') %} {% set slave_test = slave_list_parameter.get('test') %}
......
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