Commit c24e81d0 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Review for tyops

parent 279ea676
...@@ -18,15 +18,15 @@ md5sum = 906e5bd66b1265b8109a86b6ab46e91f ...@@ -18,15 +18,15 @@ md5sum = 906e5bd66b1265b8109a86b6ab46e91f
[template-apache-frontend] [template-apache-frontend]
filename = instance-apache-frontend.cfg filename = instance-apache-frontend.cfg
md5sum = 0d780f4889bb52b4f7a4fcc486b9d9e1 md5sum = 3490155542f31cefd5c3f5aea8767586
[template-apache-replicate] [template-apache-replicate]
filename = instance-apache-replicate.cfg.in filename = instance-apache-replicate.cfg.in
md5sum = 361054e6566461e728ee62e2835904f9 md5sum = a30d4bc21ae94d0eca42cea5032468a8
[template-slave-list] [template-slave-list]
filename = templates/apache-custom-slave-list.cfg.in filename = templates/apache-custom-slave-list.cfg.in
md5sum = 904084604341fe8eb00d493cd05e46c0 md5sum = acfe2c5530ddd46803f99e7f5249aa5e
[template-slave-configuration] [template-slave-configuration]
filename = templates/custom-virtualhost.conf.in filename = templates/custom-virtualhost.conf.in
...@@ -42,7 +42,7 @@ md5sum = 5c048a80c2e9374adea0cd647d14b192 ...@@ -42,7 +42,7 @@ md5sum = 5c048a80c2e9374adea0cd647d14b192
[template-custom-slave-list] [template-custom-slave-list]
filename = templates/apache-custom-slave-list.cfg.in filename = templates/apache-custom-slave-list.cfg.in
md5sum = 904084604341fe8eb00d493cd05e46c0 md5sum = acfe2c5530ddd46803f99e7f5249aa5e
[template-not-found-html] [template-not-found-html]
filename = templates/notfound.html filename = templates/notfound.html
......
...@@ -287,7 +287,7 @@ pid-file = $${directory:run}/httpd.pid ...@@ -287,7 +287,7 @@ pid-file = $${directory:run}/httpd.pid
frontend-configuration-verification = $${caddy-wrapper:rendered} -validate > /dev/null frontend-configuration-verification = $${caddy-wrapper:rendered} -validate > /dev/null
frontend-graceful-command = $${:frontend-configuration-verification}; if [ $? -eq 0 ]; then kill -USR1 $(cat $${:pid-file}); fi frontend-graceful-command = $${:frontend-configuration-verification}; if [ $? -eq 0 ]; then kill -USR1 $(cat $${:pid-file}); fi
not-found-file = $${caddy-directory:document-root}/notfound.html not-found-file = $${caddy-directory:document-root}/notfound.html
# Comunication with ats # Communication with ATS
cache-port = $${trafficserver-variable:input-port} cache-port = $${trafficserver-variable:input-port}
cache-through-port = 26011 cache-through-port = 26011
ssl-cache-through-port = 26012 ssl-cache-through-port = 26012
...@@ -585,7 +585,7 @@ command-line = ${buildout:bin-directory}/is-process-older-than-dependency-set $$ ...@@ -585,7 +585,7 @@ command-line = ${buildout:bin-directory}/is-process-older-than-dependency-set $$
wrapper-path = $${directory:promise}/caddy-frontend-is-running-actual-software-release wrapper-path = $${directory:promise}/caddy-frontend-is-running-actual-software-release
[slap_connection] [slap_connection]
# Kept for backward compatiblity # Kept for backward compatibility
computer_id = $${slap-connection:computer-id} computer_id = $${slap-connection:computer-id}
partition_id = $${slap-connection:partition-id} partition_id = $${slap-connection:partition-id}
server_url = $${slap-connection:server-url} server_url = $${slap-connection:server-url}
......
...@@ -33,7 +33,7 @@ context = ...@@ -33,7 +33,7 @@ context =
{% do slapparameter_dict.__setitem__(sla_computer_caddy_1_key, '${slap-connection:computer-id}') -%} {% do slapparameter_dict.__setitem__(sla_computer_caddy_1_key, '${slap-connection:computer-id}') -%}
{% endif -%} {% endif -%}
# Here we request individualy each frontend. # Here we request individually 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) -%}
{% set frontend_name = "%s-%s" % (namebase, i) -%} {% set frontend_name = "%s-%s" % (namebase, i) -%}
...@@ -169,7 +169,7 @@ offline = true ...@@ -169,7 +169,7 @@ offline = true
[slap_connection] [slap_connection]
# Kept for backward compatiblity # Kept for backward compatibility
computer_id = ${slap-connection:computer-id} computer_id = ${slap-connection:computer-id}
partition_id = ${slap-connection:partition-id} partition_id = ${slap-connection:partition-id}
server_url = ${slap-connection:server-url} server_url = ${slap-connection:server-url}
......
...@@ -45,7 +45,7 @@ certs = {{ custom_ssl_directory }}/certs/ ...@@ -45,7 +45,7 @@ certs = {{ custom_ssl_directory }}/certs/
newcerts = {{ custom_ssl_directory }}/newcerts/ newcerts = {{ custom_ssl_directory }}/newcerts/
crl = {{ custom_ssl_directory }}/crl/ crl = {{ custom_ssl_directory }}/crl/
{# Loop throught slave list to set up slaves #} {# Loop thought slave list to set up slaves #}
{% for slave_instance in slave_instance_list -%} {% for slave_instance in slave_instance_list -%}
{% set slave_reference = slave_instance.get('slave_reference') -%} {% set slave_reference = slave_instance.get('slave_reference') -%}
{% set slave_type = slave_instance.get('type', '') -%} {% set slave_type = slave_instance.get('type', '') -%}
......
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