Commit d02d958f authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5: do not calculate sha256sum of repozo backups

parent 865518f1
......@@ -221,6 +221,11 @@ link-binary =
< = download-base
url = ${:_profile_base_location_}/template/run-zelenium-test.py.in
[template-backup-identity-script-no-log-hash]
< = download-base
filename = backup_identity_script_no_log_hash.py.in
url = ${:_profile_base_location_}/template/${:filename}
[template]
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
......@@ -293,6 +298,7 @@ context =
key egg_interpreter eggs:interpreter
key stunnel_location stunnel:location
key template_apache_conf template-apache-backend-conf:target
key template_backup_identity_script_no_log_hash template-backup-identity-script-no-log-hash:target
key template_balancer template-balancer:target
key template_erp5 template-erp5:target
key template_haproxy_cfg template-haproxy-cfg:target
......
......@@ -78,7 +78,7 @@ md5sum = 83e69244728a0d323f535dd3e8b734b6
[template-zeo]
filename = instance-zeo.cfg.in
md5sum = 47b2759adcdf784359d2e015ef3fae55
md5sum = 7159d1da18507c7c104bdfc3bbc9bf45
[template-zope]
filename = instance-zope.cfg.in
......@@ -91,3 +91,7 @@ md5sum = 461b39677d47b3410a4ca0e396110b96
[template-haproxy-cfg]
filename = haproxy.cfg.in
md5sum = 13f1f731ec941f4ba941d6fa8834a5cc
[template-backup-identity-script-no-log-hash]
filename = template/backup_identity_script_no_log_hash.py.in
md5sum = 79bad5a9187ec1e39498c1a0285e60c4
......@@ -112,6 +112,15 @@ mode = 644
template = {{ 'inline:{{ "${directory:zodb}/**\\n${directory:log}\\n" }}' }}
rendered = ${directory:srv}/exporter.exclude
[{{ section("resiliency-identity-signature-script")}}]
# Generate identity script used by webrunner to check data integrity
# It excludes repozo files as they already include a hash function
# used to check backups when rebuilding the datafs
recipe = slapos.recipe.template
url = {{ template_backup_identity_script_no_log_hash }}
output = ${directory:srv}/.backup_identity_script
mode = 755
[{{ section("resiliency-after-import-script") }}]
# Generate after import script used by importer instance of webrunner
recipe = collective.recipe.template
......
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