Commit f7303597 authored by Julien Muchembled's avatar Julien Muchembled

ERP5: fix backup-periodicity=never (ZEO)

parent feb4d929
...@@ -79,7 +79,7 @@ md5sum = 9f8851af5faed9d1e346d7dbe0e6db5d ...@@ -79,7 +79,7 @@ md5sum = 9f8851af5faed9d1e346d7dbe0e6db5d
[template-zeo] [template-zeo]
filename = instance-zeo.cfg.in filename = instance-zeo.cfg.in
md5sum = d1f33d406d528ae27d973e2dd0efb1ba md5sum = 3e650915959ff31c9c13c84069bbcd35
[template-zope] [template-zope]
filename = instance-zope.cfg.in filename = instance-zope.cfg.in
......
...@@ -65,6 +65,7 @@ path = ${directory:promises}/zeo-{{ family }} ...@@ -65,6 +65,7 @@ path = ${directory:promises}/zeo-{{ family }}
{% set known_tid_storage_identifier_dict = () %} {% set known_tid_storage_identifier_dict = () %}
{% set tidstorage_repozo_path = '' -%} {% set tidstorage_repozo_path = '' -%}
{% else -%} {% else -%}
[tidstorage] [tidstorage]
recipe = slapos.cookbook:tidstorage recipe = slapos.cookbook:tidstorage
known-tid-storage-identifier-dict = {{ dumps(known_tid_storage_identifier_dict) }} known-tid-storage-identifier-dict = {{ dumps(known_tid_storage_identifier_dict) }}
...@@ -101,19 +102,6 @@ cron-entries = ${cron:cron-entries} ...@@ -101,19 +102,6 @@ cron-entries = ${cron:cron-entries}
name = tidstorage name = tidstorage
time = {{ dumps(backup_periodicity) }} time = {{ dumps(backup_periodicity) }}
command = ${tidstorage:repozo-wrapper} command = ${tidstorage:repozo-wrapper}
{% endif -%}
[publish]
recipe = slapos.cookbook:publish.serialised
storage-dict = {{ dumps(storage_dict) }}
{% if len(known_tid_storage_identifier_dict) > 1 -%}
tidstorage-ip = ${tidstorage:ip}
tidstorage-port = ${tidstorage:port}
{% else -%}
tidstorage-ip =
tidstorage-port =
{% endif -%}
monitor-base-url = ${monitor-publish-parameters:monitor-base-url}
# Used for ERP5 resiliency or (more probably) # Used for ERP5 resiliency or (more probably)
# webrunner resiliency with erp5 inside. # webrunner resiliency with erp5 inside.
...@@ -168,6 +156,20 @@ input = inline: #!/bin/sh ...@@ -168,6 +156,20 @@ input = inline: #!/bin/sh
output = ${directory:srv}/runner-import-restore output = ${directory:srv}/runner-import-restore
mode = 755 mode = 755
{% endif -%}
[publish]
recipe = slapos.cookbook:publish.serialised
storage-dict = {{ dumps(storage_dict) }}
{% if len(known_tid_storage_identifier_dict) > 1 -%}
tidstorage-ip = ${tidstorage:ip}
tidstorage-port = ${tidstorage:port}
{% else -%}
tidstorage-ip =
tidstorage-port =
{% endif -%}
monitor-base-url = ${monitor-publish-parameters:monitor-base-url}
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
bin = ${buildout:directory}/bin bin = ${buildout:directory}/bin
......
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