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 =
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') %}
......
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