source: main/kofacustom.skeleton/trunk/buildout-zeo.cfg @ 11133

Last change on this file since 11133 was 10765, checked in by Henrik Bettermann, 11 years ago

Fill trunk.

File size: 3.2 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  <filestorage async>
53    path ${zope_conf:filestorage}/Data.async.fs
54  </filestorage>
55  <eventlog>
56    # This sets up logging to a file.
57    # The "path" setting can be a relative or absolute
58    # filesystem path.
59    <logfile>
60      path ${zope_conf:logfiles}/z3.log
61      formatter zope.exceptions.log.Formatter
62    </logfile>
63    # This sets up logging to to standard output.
64    # The "path" setting can be the tokens STDOUT or STDERR
65    #  <logfile>
66    #    path STDOUT
67    #    formatter zope.exceptions.log.Formatter
68    #  </logfile>
69  </eventlog>
70
71[zope_conf_zeo_1]
72recipe = collective.recipe.template
73input = etc/zope_zeo1.conf.in
74output = ${buildout:parts-directory}/etc/zope_zeo1.conf
75filestorage = ${buildout:directory}/var/filestorage
76blobstorage = ${buildout:directory}/var/blobstorage
77logfiles = ${buildout:directory}/var/log
78extra =
79# extra = <grokwarnings>True</grokwarnings>
80# 'extra' is copied verbatim. Use it for product config sections and so.
81
82[zope_conf_zeo_2]
83recipe = collective.recipe.template
84input = etc/zope_zeo2.conf.in
85output = ${buildout:parts-directory}/etc/zope_zeo2.conf
86filestorage = ${buildout:directory}/var/filestorage
87blobstorage = ${buildout:directory}/var/blobstorage
88logfiles = ${buildout:directory}/var/log
89extra =
90# extra = <grokwarnings>True</grokwarnings>
91# 'extra' is copied verbatim. Use it for product config sections and so.
92
93[zeo1_ini]
94recipe = collective.recipe.template
95input = etc/zeo1.ini.in
96output = ${buildout:parts-directory}/etc/zeo1.ini
97
98[zeo2_ini]
99recipe = collective.recipe.template
100input = etc/zeo2.ini.in
101output = ${buildout:parts-directory}/etc/zeo2.ini
102
103[zeo1_conf]
104recipe = collective.recipe.template
105input = etc/zeo1.conf.in
106output = ${buildout:parts-directory}/etc/zeo1.conf
107
108[zeo2_conf]
109recipe = collective.recipe.template
110input = etc/zeo2.conf.in
111output = ${buildout:parts-directory}/etc/zeo2.conf
112
113
114[zeo_client1]
115# See http://pypi.python.org/pypi/zc.recipe.egg for details...
116recipe = zc.recipe.egg
117eggs = kofacustom.skeleton [beaker]
118arguments = "${buildout:parts-directory}/etc/zeo1.conf"
119scripts = kofactl=zeo_client1
120
121[zeo_client2]
122# See http://pypi.python.org/pypi/zc.recipe.egg for details...
123recipe = zc.recipe.egg
124eggs = kofacustom.skeleton [beaker]
125arguments = "${buildout:parts-directory}/etc/zeo2.conf"
126scripts = kofactl=zeo_client2
127
Note: See TracBrowser for help on using the repository browser.