Commit 7c7d2e2c authored by Łukasz Nowak's avatar Łukasz Nowak

rapid-cdn: Fine tune promises

parent 0997fd97
......@@ -22,15 +22,15 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
[profile-frontend]
filename = instance-frontend.cfg.in
md5sum = e83fcd7d5a18106697d4707c418b8ad1
md5sum = 87157fd061b1237574415009ae9ccc0e
[profile-master]
filename = instance-master.cfg.in
md5sum = 7e6c901b8cc892486c8673e20ef5d9ba
md5sum = c3db9abe95992e96ef946b5acaddbbbb
[profile-slave-list]
filename = instance-slave-list.cfg.in
md5sum = 52b752dbac369a47f3f3114cca411851
md5sum = 0634ebd7d884f0083d8fdf8ab2af08f2
[profile-master-publish-slave-information]
filename = instance-master-publish-slave-information.cfg.in
......@@ -102,7 +102,7 @@ md5sum = e82ccdb0b26552a1c88ff523d8fae24a
[profile-kedifa]
filename = instance-kedifa.cfg.in
md5sum = 107dc147d94d02d2084b97b8ec591831
md5sum = 7ce1ae2ec21a2aa385f16e406c6edc99
[template-frontend-haproxy-rsyslogd-conf]
_update_hash_filename_ = templates/frontend-haproxy-rsyslogd.conf.in
......
......@@ -631,6 +631,7 @@ promise = check_socket_listening
name = trafficserver-port-listening.py
config-host = ${trafficserver-variable:local-ip}
config-port = ${trafficserver-variable:input-port}
config-report-anomaly = True
[trafficserver-ctl]
recipe = slapos.cookbook:wrapper
......@@ -766,6 +767,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv4_https.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${configuration:port}
config-report-anomaly = True
[promise-frontend-haproxy-v4-http]
<= monitor-promise-base
......@@ -773,6 +775,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv4_http.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${configuration:plain_http_port}
config-report-anomaly = True
[promise-frontend-haproxy-v6-https]
<= monitor-promise-base
......@@ -780,6 +783,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv6_https.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${configuration:port}
config-report-anomaly = True
[promise-frontend-haproxy-v6-http]
<= monitor-promise-base
......@@ -787,6 +791,7 @@ promise = check_socket_listening
name = frontend_haproxy_ipv6_http.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${configuration:plain_http_port}
config-report-anomaly = True
[promise-backend-haproxy-http]
<= monitor-promise-base
......@@ -794,6 +799,7 @@ promise = check_socket_listening
name = backend_haproxy_http.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${backend-haproxy-configuration:http-port}
config-report-anomaly = True
[promise-backend-haproxy-https]
<= monitor-promise-base
......@@ -801,6 +807,7 @@ promise = check_socket_listening
name = backend_haproxy_https.py
config-host = {{ instance_parameter_dict['ipv4-random'] }}
config-port = ${backend-haproxy-configuration:https-port}
config-report-anomaly = True
[backend-haproxy-configuration]
file = ${directory:etc}/backend-haproxy.cfg
......@@ -1029,6 +1036,7 @@ name = backend-haproxy-statistic-frontend.py
config-http-code = 401
config-url =
${backend-haproxy-statistic-frontend:connection-secure_access}
config-report-anomaly = True
[slave-introspection-configuration-state]
<= jinja2-template-base
......@@ -1097,6 +1105,7 @@ promise = check_socket_listening
name = slave_introspection_https.py
config-host = {{ instance_parameter_dict['ipv6-random'] }}
config-port = ${frontend-configuration:slave-introspection-https-port}
config-report-anomaly = True
[logrotate-entry-slave-introspection]
<= logrotate-entry-base
......@@ -1128,6 +1137,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${logrotate-setup-validate:state-file}
config-state = empty
config-report-anomaly = True
[configuration]
{%- for key, value in instance_parameter_dict.items() -%}
......
......@@ -164,6 +164,7 @@ promise = check_socket_listening
name = expose-csr-ip-port-listening.py
config-host = ${expose-csr-configuration:ip}
config-port = ${expose-csr-configuration:port}
config-report-anomaly = True
[expose-csr]
recipe = slapos.cookbook:wrapper
......@@ -227,6 +228,7 @@ name = kedifa-http-reply.py
config-http-code = 400
config-url = https://[${kedifa-config:ip}]:${kedifa-config:port}
config-ca-cert-file = ${kedifa-config:ca-certificate}
config-report-anomaly = True
[logrotate-entry-kedifa]
<= logrotate-entry-base
......@@ -346,6 +348,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${logrotate-setup-validate:state-file}
config-state = empty
config-report-anomaly = True
[kedifa-auth-ready]
recipe = plone.recipe.command
......@@ -359,5 +362,8 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${kedifa-auth-ready:output}
config-state = empty
config-report-anomaly = True
config-failure-amount = 2
config-result-count = 2
{%- endif -%} {# if instance_parameter_dict['slap-software-type'] == software_type #}
......@@ -501,6 +501,7 @@ promise = check_url_available
name = check-backend-haproxy-statistic-url-frontend-node-{{ index + 1 }}.py
config-url =
{{ section_part }}:connection-backend-haproxy-statistic-url}
config-report-anomaly = True
{% endfor %}
#----------------------------
......@@ -705,6 +706,7 @@ wrapper-path = ${directory:bin}/aikc-caucase-csr-sign-check
promise = check_command_execute
name = ${:_buildout_section_name_}.py
config-command = ${aikc-sign-promise-wrapper:wrapper-path}
config-report-anomaly = True
{% for csr in frontend_list + ['kedifa'] %}
[aikc-{{ csr }}-wrapper]
......@@ -829,6 +831,7 @@ wrapper-path = ${directory:bin}/aibcc-caucase-csr-sign-check
promise = check_command_execute
name = ${:_buildout_section_name_}.py
config-command = ${aibcc-sign-promise-wrapper:wrapper-path}
config-report-anomaly = True
{% for csr in frontend_list %}
[aibcc-{{ csr }}-wrapper]
......@@ -1000,6 +1003,7 @@ promise = check_socket_listening
name = master-introspection-server-ip-port-listening.py
config-host = ${master-introspection-server-configuration:ip}
config-port = ${master-introspection-server-configuration:port}
config-report-anomaly = True
[rejected-slave-promise]
<= monitor-promise-base
......@@ -1008,6 +1012,9 @@ name = rejected-slave.py
config-filename = ${rejected-slave-json:output}
config-state = empty
config-url = ${rejected-slave-publish:url}
config-report-anomaly = False
config-failure-amount = 2
config-result-count = 2
[master-key-upload-url-ready]
recipe = slapos.recipe.build
......@@ -1030,6 +1037,7 @@ promise = check_file_state
name = ${:_buildout_section_name_}.py
config-filename = ${master-key-upload-url-ready:output}
config-state = empty
config-report-anomaly = True
[master-key-generate-auth-url-ready]
<= master-key-upload-url-ready
......@@ -1038,6 +1046,7 @@ key = ${request-kedifa:connection-master-key-generate-auth-url}
[master-key-generate-auth-url-ready-promise]
<= master-key-upload-url-ready-promise
config-filename = ${master-key-generate-auth-url-ready:output}
config-report-anomaly = True
[master-key-download-url-ready]
<= master-key-upload-url-ready
......@@ -1046,6 +1055,7 @@ key = ${request-kedifa:connection-master-key-download-url}
[master-key-download-url-ready-promise]
<= master-key-upload-url-ready-promise
config-filename = ${master-key-download-url-ready:output}
config-report-anomaly = True
[caucased-backend-client]
hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
......
......@@ -640,6 +640,7 @@ promise = check_socket_listening
name = expose-csr-ip-port-listening.py
config-host = ${expose-csr-configuration:ip}
config-port = ${expose-csr-configuration:port}
config-report-anomaly = True
[expose-csr]
recipe = slapos.cookbook:wrapper
......
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