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
Boxiang Sun
slapos
Commits
a639e981
Commit
a639e981
authored
Jul 29, 2015
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5: Fix dynamic zope instance home function.
parent
0503a5e5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+3
-3
stack/erp5/instance-erp5.cfg.in
stack/erp5/instance-erp5.cfg.in
+1
-2
stack/erp5/instance-zope.cfg.in
stack/erp5/instance-zope.cfg.in
+1
-1
stack/erp5/zope.conf.in
stack/erp5/zope.conf.in
+2
-2
No files found.
stack/erp5/buildout.cfg
View file @
a639e981
...
@@ -192,7 +192,7 @@ md5sum = 050fa6ff4eb397c5d4cb41a9f75afb3f
...
@@ -192,7 +192,7 @@ md5sum = 050fa6ff4eb397c5d4cb41a9f75afb3f
[template-zope-conf]
[template-zope-conf]
< = download-base
< = download-base
filename = zope.conf.in
filename = zope.conf.in
md5sum = 0
4b40d4729fec7dd528b53dab47439bf
md5sum = 0
bf51218ecbf2bd319214192448a3ef7
[template-runzope-userhosts-preloaded]
[template-runzope-userhosts-preloaded]
< = download-base
< = download-base
...
@@ -296,7 +296,7 @@ extra-context =
...
@@ -296,7 +296,7 @@ extra-context =
[template-erp5]
[template-erp5]
< = download-base
< = download-base
filename = instance-erp5.cfg.in
filename = instance-erp5.cfg.in
md5sum = 4
63464456c2ed9d761e8a954de02e9e0
md5sum = 4
c552f915eb6549ce160a9ff5871ae74
[template-zeo]
[template-zeo]
< = download-base
< = download-base
...
@@ -306,7 +306,7 @@ md5sum = 9670cf63099e2c520017a23defff51a4
...
@@ -306,7 +306,7 @@ md5sum = 9670cf63099e2c520017a23defff51a4
[template-zope]
[template-zope]
< = download-base
< = download-base
filename = instance-zope.cfg.in
filename = instance-zope.cfg.in
md5sum =
ea110d1e180151b8ca6d47e9a98a635f
md5sum =
7fc9bf46be8fc56c164ef74d96db491c
link-binary =
link-binary =
${aspell:location}/bin/aspell
${aspell:location}/bin/aspell
${dmtx-utils:location}/bin/dmtxwrite
${dmtx-utils:location}/bin/dmtxwrite
...
...
stack/erp5/instance-erp5.cfg.in
View file @
a639e981
...
@@ -127,8 +127,7 @@ name = {{ partition_name }}
...
@@ -127,8 +127,7 @@ name = {{ partition_name }}
{{ sla(partition_name) }}
{{ sla(partition_name) }}
config-name = {{ dumps(custom_name) }}
config-name = {{ dumps(custom_name) }}
config-instance-count = {{ dumps(zope_parameter_dict.get('instance-count', 1)) }}
config-instance-count = {{ dumps(zope_parameter_dict.get('instance-count', 1)) }}
config-my-instance = {{ dumps(zope_parameter_dict.get('instance', False)) }}
config-instance = {{ dumps(zope_parameter_dict.get('instance', False)) }}
config-my-instance-product = {{ dumps(zope_parameter_dict.get('instance-product', False)) }}
config-thread-amount = {{ dumps(zope_parameter_dict.get('thread-amount', 4)) }}
config-thread-amount = {{ dumps(zope_parameter_dict.get('thread-amount', 4)) }}
config-timerserver-interval = {{ dumps(zope_parameter_dict.get('timerserver-interval', 5)) }}
config-timerserver-interval = {{ dumps(zope_parameter_dict.get('timerserver-interval', 5)) }}
config-longrequest-logger-interval = {{ dumps(zope_parameter_dict.get('longrequest-logger-interval', -1)) }}
config-longrequest-logger-interval = {{ dumps(zope_parameter_dict.get('longrequest-logger-interval', -1)) }}
...
...
stack/erp5/instance-zope.cfg.in
View file @
a639e981
...
@@ -46,7 +46,7 @@ ca-crl = ${directory:test-ca-crl}
...
@@ -46,7 +46,7 @@ ca-crl = ${directory:test-ca-crl}
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
bin = ${buildout:directory}/bin
bin = ${buildout:directory}/bin
etc = ${buildout:directory}/etc
etc = ${buildout:directory}/etc
instance =
${:srv}/erp5shared
instance =
{{slapparameter_dict.get('instance', '${:srv}erp5shared')}}
instance-constraint = ${:instance}/Constraint
instance-constraint = ${:instance}/Constraint
instance-document = ${:instance}/Document
instance-document = ${:instance}/Document
instance-etc = ${:instance}/etc
instance-etc = ${:instance}/etc
...
...
stack/erp5/zope.conf.in
View file @
a639e981
# Note: Environment is setup in running wrapper script, as zope.conf is read
# Note: Environment is setup in running wrapper script, as zope.conf is read
# too late for some components.
# too late for some components.
%define INSTANCE {{ parameter_dict
.get('my-instance', parameter_dict['instance'])
}}
%define INSTANCE {{ parameter_dict
['instance']
}}
instancehome $INSTANCE
instancehome $INSTANCE
zserver-threads {{ parameter_dict['thread-amount'] }}
zserver-threads {{ parameter_dict['thread-amount'] }}
# When ownership checking is enabled, the roles a script runs as are the
# When ownership checking is enabled, the roles a script runs as are the
...
@@ -20,7 +20,7 @@ rest-input-encoding utf-8
...
@@ -20,7 +20,7 @@ rest-input-encoding utf-8
rest-output-encoding utf-8
rest-output-encoding utf-8
# XXX: isn't this entry implicit ?
# XXX: isn't this entry implicit ?
products {{ parameter_dict
.get('my-instance-products' ,parameter_dict['instance-products'])
}}
products {{ parameter_dict
['instance-products']
}}
{% if parameter_dict['webdav'] -%}
{% if parameter_dict['webdav'] -%}
<webdav-source-server>
<webdav-source-server>
...
...
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