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