source: main/kofacustom.iuokada/trunk/buildout-zeo.cfg @ 17058

Last change on this file since 17058 was 15563, checked in by Henrik Bettermann, 5 years ago

Change name, set ports and replace colors.

File size: 3.3 KB
Line 
1# A buildout configuration for a ZEO server and two ZEO clients.
2#
3[buildout]
4extends = buildout.cfg
5parts =
6    eggbasket
7    app
8    i18n
9    test
10    mkdirs
11    zpasswd
12    zope_conf
13    site_zcml
14    zdaemon_conf
15    raw_deploy_ini
16    raw_debug_ini
17    themed_deploy_ini
18    themed_debug_ini
19    profile_ini
20    zeo1_ini
21    zeo2_ini
22    coverage-detect
23    coverage-report
24# kofactl creation must be _after_ app!
25    kofactl
26    lxml
27    diazo
28# For backward compatibility, telling buildout not to throw away
29# the data and log subdirectories from the parts directory.
30    data
31    log
32
33    zeo_server
34    zope_conf_zeo_1
35    zope_conf_zeo_2
36    zeo1_ini
37    zeo2_ini
38    zeo1_conf
39    zeo2_conf
40    zeo_client1
41    zeo_client2
42
43[zeo_server]
44recipe = zc.zodbrecipes:server
45zeo.conf =
46  <zeo>
47    address ${kofa_params:server_port}
48  </zeo>
49  <blobstorage 1>
50    blob-dir ${zope_conf:blobstorage}
51    <filestorage 1>
52      path ${zope_conf:filestorage}/Data.fs
53    </filestorage>
54  </blobstorage>
55  <filestorage async>
56    path ${zope_conf:filestorage}/Data.async.fs
57  </filestorage>
58  <eventlog>
59    # This sets up logging to a file.
60    # The "path" setting can be a relative or absolute
61    # filesystem path.
62    <logfile>
63      path ${zope_conf:logfiles}/z3.log
64      formatter zope.exceptions.log.Formatter
65    </logfile>
66    # This sets up logging to to standard output.
67    # The "path" setting can be the tokens STDOUT or STDERR
68    #  <logfile>
69    #    path STDOUT
70    #    formatter zope.exceptions.log.Formatter
71    #  </logfile>
72  </eventlog>
73
74[zope_conf_zeo_1]
75recipe = collective.recipe.template
76input = etc/zope_zeo1.conf.in
77output = ${buildout:parts-directory}/etc/zope_zeo1.conf
78filestorage = ${buildout:directory}/var/filestorage
79blobstorage = ${buildout:directory}/var/blobstorage
80logfiles = ${buildout:directory}/var/log
81extra =
82# extra = <grokwarnings>True</grokwarnings>
83# 'extra' is copied verbatim. Use it for product config sections and so.
84
85[zope_conf_zeo_2]
86recipe = collective.recipe.template
87input = etc/zope_zeo2.conf.in
88output = ${buildout:parts-directory}/etc/zope_zeo2.conf
89filestorage = ${buildout:directory}/var/filestorage
90blobstorage = ${buildout:directory}/var/blobstorage
91logfiles = ${buildout:directory}/var/log
92extra =
93# extra = <grokwarnings>True</grokwarnings>
94# 'extra' is copied verbatim. Use it for product config sections and so.
95
96[zeo1_ini]
97recipe = collective.recipe.template
98input = etc/themed/zeo1.ini.in
99output = ${buildout:parts-directory}/etc/themed-zeo1.ini
100
101[zeo2_ini]
102recipe = collective.recipe.template
103input = etc/themed/zeo2.ini.in
104output = ${buildout:parts-directory}/etc/themed-zeo2.ini
105
106[zeo1_conf]
107recipe = collective.recipe.template
108input = etc/zeo1.conf.in
109output = ${buildout:parts-directory}/etc/zeo1.conf
110
111[zeo2_conf]
112recipe = collective.recipe.template
113input = etc/zeo2.conf.in
114output = ${buildout:parts-directory}/etc/zeo2.conf
115
116
117[zeo_client1]
118# See http://pypi.python.org/pypi/zc.recipe.egg for details...
119recipe = zc.recipe.egg
120eggs = kofacustom.iuokada [beaker, diazo]
121arguments = "${buildout:parts-directory}/etc/zeo1.conf"
122scripts = kofactl=zeo_client1
123
124[zeo_client2]
125# See http://pypi.python.org/pypi/zc.recipe.egg for details...
126recipe = zc.recipe.egg
127eggs = kofacustom.iuokada [beaker, diazo]
128arguments = "${buildout:parts-directory}/etc/zeo2.conf"
129scripts = kofactl=zeo_client2
130
Note: See TracBrowser for help on using the repository browser.