source: main/waeup.kofa/backup-trunk/buildout-zeo.cfg @ 10064

Last change on this file since 10064 was 8662, checked in by uli, 12 years ago

Start setting main parameters in one buildout section.

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