| 1 | # A buildout configuration for a ZEO server and two ZEO clients. |
|---|
| 2 | # |
|---|
| 3 | [buildout] |
|---|
| 4 | extends = buildout.cfg |
|---|
| 5 | parts = |
|---|
| 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] |
|---|
| 41 | recipe = zc.zodbrecipes:server |
|---|
| 42 | zeo.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] |
|---|
| 69 | recipe = collective.recipe.template |
|---|
| 70 | input = etc/zope_zeo1.conf.in |
|---|
| 71 | output = ${buildout:parts-directory}/etc/zope_zeo1.conf |
|---|
| 72 | filestorage = ${buildout:directory}/var/filestorage |
|---|
| 73 | blobstorage = ${buildout:directory}/var/blobstorage |
|---|
| 74 | logfiles = ${buildout:directory}/var/log |
|---|
| 75 | extra = |
|---|
| 76 | # extra = <grokwarnings>True</grokwarnings> |
|---|
| 77 | # 'extra' is copied verbatim. Use it for product config sections and so. |
|---|
| 78 | |
|---|
| 79 | [zope_conf_zeo_2] |
|---|
| 80 | recipe = collective.recipe.template |
|---|
| 81 | input = etc/zope_zeo2.conf.in |
|---|
| 82 | output = ${buildout:parts-directory}/etc/zope_zeo2.conf |
|---|
| 83 | filestorage = ${buildout:directory}/var/filestorage |
|---|
| 84 | blobstorage = ${buildout:directory}/var/blobstorage |
|---|
| 85 | logfiles = ${buildout:directory}/var/log |
|---|
| 86 | extra = |
|---|
| 87 | # extra = <grokwarnings>True</grokwarnings> |
|---|
| 88 | # 'extra' is copied verbatim. Use it for product config sections and so. |
|---|
| 89 | |
|---|
| 90 | [zeo1_ini] |
|---|
| 91 | recipe = collective.recipe.template |
|---|
| 92 | input = etc/zeo1.ini.in |
|---|
| 93 | output = ${buildout:parts-directory}/etc/zeo1.ini |
|---|
| 94 | |
|---|
| 95 | [zeo2_ini] |
|---|
| 96 | recipe = collective.recipe.template |
|---|
| 97 | input = etc/zeo2.ini.in |
|---|
| 98 | output = ${buildout:parts-directory}/etc/zeo2.ini |
|---|
| 99 | |
|---|
| 100 | [zeo1_conf] |
|---|
| 101 | recipe = collective.recipe.template |
|---|
| 102 | input = etc/zeo1.conf.in |
|---|
| 103 | output = ${buildout:parts-directory}/etc/zeo1.conf |
|---|
| 104 | |
|---|
| 105 | [zeo2_conf] |
|---|
| 106 | recipe = collective.recipe.template |
|---|
| 107 | input = etc/zeo2.conf.in |
|---|
| 108 | output = ${buildout:parts-directory}/etc/zeo2.conf |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | [zeo_client1] |
|---|
| 112 | # See http://pypi.python.org/pypi/zc.recipe.egg for details... |
|---|
| 113 | recipe = zc.recipe.egg |
|---|
| 114 | eggs = waeup.kwarapoly [beaker] |
|---|
| 115 | arguments = "${buildout:parts-directory}/etc/zeo1.conf" |
|---|
| 116 | scripts = kofactl=zeo_client1 |
|---|
| 117 | |
|---|
| 118 | [zeo_client2] |
|---|
| 119 | # See http://pypi.python.org/pypi/zc.recipe.egg for details... |
|---|
| 120 | recipe = zc.recipe.egg |
|---|
| 121 | eggs = waeup.kwarapoly [beaker] |
|---|
| 122 | arguments = "${buildout:parts-directory}/etc/zeo2.conf" |
|---|
| 123 | scripts = kofactl=zeo_client2 |
|---|
| 124 | |
|---|