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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
Commits
33785296
Commit
33785296
authored
Apr 02, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorise zope section definition.
parent
e04b088d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
40 deletions
+31
-40
software/erp5/instance-tidstorage.cfg.in
software/erp5/instance-tidstorage.cfg.in
+30
-39
software/erp5/software.cfg
software/erp5/software.cfg
+1
-1
No files found.
software/erp5/instance-tidstorage.cfg.in
View file @
33785296
...
@@ -34,57 +34,21 @@ backward compatibility with existing automatically setup CAs.
...
@@ -34,57 +34,21 @@ backward compatibility with existing automatically setup CAs.
longrequest_logger_interval=''
longrequest_logger_interval=''
) -%}
) -%}
[{{ section(name) }}]
[{{ section(name) }}]
recipe = slapos.cookbook:generic.zope.zeo.client
< = zope-base
# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = {{ parameter_dict['products'] }}
# Options
user = zope
{% do zope_dummy_list.append(None) %}
{% do zope_dummy_list.append(None) %}
{% set offset = zope_dummy_list | length %}
{% set offset = zope_dummy_list | length %}
port = {{ zope_port_base + offset }}
port = {{ zope_port_base + offset }}
ip = ${slap-network-information:local-ipv4}
thread-amount = {{ thread_amount }}
thread-amount = {{ thread_amount }}
deadlock-path = /manage_debug_threads
timezone = {{ json['timezone'] }}
zeo-connection-string =
{{ zodb_connection_string }}
timeserver = {{ timeserver }}
timeserver = {{ timeserver }}
tidstorage-ip = ${tidstorage:ip}
tidstorage-port = ${tidstorage:port}
# long request
longrequest-logger-file = {{ longrequest_logger_file }}
longrequest-logger-file = {{ longrequest_logger_file }}
longrequest-logger-timeout = {{ longrequest_logger_timeout }}
longrequest-logger-timeout = {{ longrequest_logger_timeout }}
longrequest-logger-interval = {{ longrequest_logger_interval }}
longrequest-logger-interval = {{ longrequest_logger_interval }}
# Paths
wrapper = ${basedirectory:services}/{{ name }}
wrapper = ${basedirectory:services}/{{ name }}
instance-path = ${directory:instance}
instance-etc = ${directory:instance-etc}
instance-products = ${directory:instance-products}
bt5-repository = ${rootdirectory:var}/bt5_repository
tmp-path = ${rootdirectory:tmp}
bin-path = ${rootdirectory:bin}
site-zcml = ${:instance-etc}/site.zcml
pid-file = ${basedirectory:run}/{{ name }}.pid
pid-file = ${basedirectory:run}/{{ name }}.pid
lock-file = ${basedirectory:run}/{{ name }}.lock
lock-file = ${basedirectory:run}/{{ name }}.lock
event-log = ${basedirectory:log}/{{ name }}-event.log
event-log = ${basedirectory:log}/{{ name }}-event.log
z2-log = ${basedirectory:log}/{{ name }}-Z2.log
z2-log = ${basedirectory:log}/{{ name }}-Z2.log
configuration-file = ${rootdirectory:etc}/{{ name }}.conf
configuration-file = ${rootdirectory:etc}/{{ name }}.conf
inituser = ${:instance-path}/inituser
# Binary information
runzope-binary = {{ bin_directory }}/runzope
# BT5 Configuration
bt5-repository-list =
promise-path = ${erp5-promise:promise-path}
site-id = {{ site_id }}
[{{ section('logrotate-entry-' ~ name) }}]
[{{ section('logrotate-entry-' ~ name) }}]
< = logrotate-base
< = logrotate-base
...
@@ -326,8 +290,35 @@ recipe = slapos.cookbook:logrotate.d
...
@@ -326,8 +290,35 @@ recipe = slapos.cookbook:logrotate.d
name = zeo-{{ zeo_id }}
name = zeo-{{ zeo_id }}
log = ${zeo-instance-{{ zeo_id }}:log-path}
log = ${zeo-instance-{{ zeo_id }}:log-path}
post = {{ bin_directory }}/killpidfromfile ${zeo-instance-{{ zeo_id }}:pid-path} SIGUSR2
post = {{ bin_directory }}/killpidfromfile ${zeo-instance-{{ zeo_id }}:pid-path} SIGUSR2
{% endfor %}
{% set zodb_connection_string = zodb_connection_list | join('\n ') -%}
{% endfor -%}
[zope-base]
recipe = slapos.cookbook:generic.zope.zeo.client
# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = {{ parameter_dict['products'] }}
user = zope
ip = ${slap-network-information:local-ipv4}
deadlock-path = /manage_debug_threads
timezone = {{ json['timezone'] }}
zeo-connection-string =
{{ zodb_connection_list | join('\n ') }}
tidstorage-ip = ${tidstorage:ip}
tidstorage-port = ${tidstorage:port}
instance-path = ${directory:instance}
instance-etc = ${directory:instance-etc}
instance-products = ${directory:instance-products}
bt5-repository = ${rootdirectory:var}/bt5_repository
tmp-path = ${rootdirectory:tmp}
bin-path = ${rootdirectory:bin}
site-zcml = ${:instance-etc}/site.zcml
inituser = ${:instance-path}/inituser
runzope-binary = {{ bin_directory }}/runzope
bt5-repository-list =
promise-path = ${erp5-promise:promise-path}
site-id = {{ site_id }}
#############################
#############################
# Zope
# Zope
#############################
#############################
...
...
software/erp5/software.cfg
View file @
33785296
...
@@ -127,7 +127,7 @@ extra-context =
...
@@ -127,7 +127,7 @@ extra-context =
[template-tidstorage]
[template-tidstorage]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
md5sum =
0f2acaf5c834ad5be6ce19dfd9305d50
md5sum =
e50b6d81b088c0c7dc9d954f190e45d8
mode = 640
mode = 640
[template-cloudooo]
[template-cloudooo]
...
...
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