Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Blinov
slapos
Commits
7731726a
Commit
7731726a
authored
Oct 16, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5:cluster] Make it easier to use tidstorage-dict parameter.
parent
5927abee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
software/erp5/README.txt
software/erp5/README.txt
+6
-3
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+1
-1
stack/erp5/instance-zeo.cfg.in
stack/erp5/instance-zeo.cfg.in
+3
-3
No files found.
software/erp5/README.txt
View file @
7731726a
...
...
@@ -99,20 +99,23 @@ value (dict)
'tidstorage-dict' (dict, optional)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Backup parameters for tidstorage-related backup scripts.
No backups are done
if not provided.
TIDStorage is not deployed
if not provided.
key (str)
Possible keys and associated value types:
'zodb-dict' (dict,
mandatory
)
'zodb-dict' (dict,
optional
)
key (str)
(same as zodb-dict)
value (str, optional)
Path to store backups of this zodb into. Occurrences of '%(backup)s' are
replaced with the path to partition's srv/backup/zodb directory.
Defaults to {}.
If an item is missing compared to zodb-dict, value defaults to
'%(backup)s/' + key.
'timestamp-path' (str, optional)
Path to backup timestamp file.
Defaults to
Occurrences of '%(backup)s' are replaced with the path to partition's
srv/backup/tidstorage directory.
Defaults to '%(backup)s/repozo_tidstorage_timestamp.log'.
'zope-partition-dict' (dict, optional)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
stack/erp5/buildout.cfg
View file @
7731726a
...
...
@@ -298,7 +298,7 @@ mode = 640
[template-zeo]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-zeo.cfg.in
md5sum =
04b850a8da2a9acd338f9109e78de7ce
md5sum =
70425735822e029a7ebd1008903c673b
mode = 640
[template-cluster-zope]
...
...
stack/erp5/instance-zeo.cfg.in
View file @
7731726a
...
...
@@ -62,11 +62,11 @@ ipv6 = {{ ipv6 }}
cache_size,
client_dict,
]) -%}
{% if tidstorage_dict -%}
{% if tidstorage_dict
is not None
-%}
{% do known_tid_storage_identifier_dict.__setitem__(
(known_tid_storage_identifier_host, export_id), (
storage_dict['path'],
tidstorage_dict.get(export_id, '%(backup)s/' ~ export_id) % {'backup': zodb_backup_path},
tidstorage_dict.get(
'zodb-dict', {}).get(
export_id, '%(backup)s/' ~ export_id) % {'backup': zodb_backup_path},
mount_point,
),
) -%}
...
...
@@ -109,7 +109,7 @@ path = ${directory:promises}/zeo-tunnel-{{ storage_family }}
{% set next_port = next_port + 1 -%}
{% endfor -%}
{% if tidstorage_dict -%}
{% if tidstorage_dict
is not None
-%}
[tidstorage]
recipe = slapos.cookbook:tidstorage
known-tid-storage-identifier-dict = {{ dumps(known_tid_storage_identifier_dict) }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment