Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. ######################################################
  2. # Base Configuration; used by both standalone and zeo,
  3. # which extend it.
  4. # ---------------------------------------------------
  5.  
  6. # Buildout instructions in this file are
  7. # usually only changed by experienced developers.
  8. #
  9. # Beyond here there be dragons!
  10.  
  11. [buildout]
  12. eggs-directory=../buildout-cache/eggs
  13. download-cache=../buildout-cache/downloads
  14.  
  15. # Don't download new things unless needed to satisfy dependencies.
  16. # Override this on the command line with the "-n" flag.
  17. newest = false
  18.  
  19. # Pick final releases over newer development releases when it's
  20. # possible to do so and still fulfil requirements. Note that explicit
  21. # version specifications will override this preference.
  22. prefer-final = true
  23.  
  24. versions = versions
  25.  
  26. # Add additional egg download sources here. dist.plone.org contains archives
  27. # of Plone packages.
  28. find-links =
  29.     http://dist.plone.org
  30.     http://download.zope.org/ppix/
  31.     http://download.zope.org/distribution/
  32.     http://effbot.org/downloads
  33.  
  34. # unzip all eggs for easier debugging
  35. unzip = true
  36.  
  37. # Load the DumpPickedVersions extension, which will notify
  38. # you of versions picked by buildout that were not specifically
  39. # pinned.
  40. extensions = buildout.dumppickedversions
  41.  
  42.  
  43.  
  44.  
  45. [zopepy]
  46. # installs a zopepy python interpreter that runs with your
  47. # full Zope environment
  48. recipe = zc.recipe.egg
  49. eggs = ${buildout:eggs}
  50. interpreter = zopepy
  51. scripts = zopepy
  52.  
  53.  
  54.  
  55.  
  56. [unifiedinstaller]
  57. # This recipe installs the plonectl script and a few other convenience
  58. # items.
  59. # For options see http://pypi.python.org/pypi/plone.recipe.unifiedinstaller
  60. recipe = plone.recipe.unifiedinstaller
  61. user = ${buildout:user}
  62. primary-port = ${buildout:http-address}
  63. sudo-command = sudo -u admin
  64.  
  65.  
  66. [repozo]
  67. # This recipe builds the repozo script for non-zeo installations.
  68. recipe = zc.recipe.egg
  69. eggs = ZODB3
  70. scripts = repozo
  71.  
  72.  
  73. [backup]
  74. # This recipe builds the backup, restore and snapshotbackup commands.
  75. # For options see http://pypi.python.org/pypi/collective.recipe.backup
  76. recipe = collective.recipe.backup
  77. location = ${buildout:backups-dir}/backups
  78. snapshotlocation = ${buildout:backups-dir}/snapshotbackups
  79.  
  80.  
  81. [zeoserver]
  82. # Use this section to install and configure a Zope
  83. # Enterprise Objects server.
  84. # For options see http://pypi.python.org/pypi/plone.recipe.zeoserver
  85. recipe = plone.recipe.zeoserver
  86. zeo-address = ${buildout:zeo-address}
  87. # if we try to start as root, Zope will switch to the user below
  88. effective-user = ${buildout:effective-user}
  89. # Put the log, pid and socket files in var/zeoserver
  90. zeo-log     = ${buildout:directory}/var/zeoserver/zeoserver.log
  91. pid-file    = ${buildout:directory}/var/zeoserver/zeoserver.pid
  92. socket-name = ${buildout:directory}/var/zeoserver/zeo.zdsock
  93. blob-storage = ${buildout:directory}/var/blobstorage
  94. # You may also control the environment variables for the zeoserver.
  95. environment-vars = ${buildout:environment-vars}
  96. eggs = tempstorage
  97.  
  98. zeo-conf-additional =
  99.      <filestorage mp001bd>
  100.        path ${buildout:directory}/var/filestorage/mp001BD.fs
  101.        blob-dir ${buildout:directory}/var/blobstorage/mp001bd
  102.      </filestorage>
  103.  
  104.      <filestorage mp002bd>
  105.        path ${buildout:directory}/var/filestorage/mp002BD.fs
  106.        blob-dir ${buildout:directory}/var/blobstorage/mp002bd
  107.      </filestorage>
  108.  
  109.      <filestorage mp003bd>
  110.        path ${buildout:directory}/var/filestorage/mp003BD.fs
  111.        blob-dir ${buildout:directory}/var/blobstorage/mp003bd
  112.      </filestorage>
  113.  
  114.     %import tempstorage
  115.     <temporarystorage temp>
  116.        name temporary storage for sessioning
  117.     </temporarystorage>
  118.  
  119. [chown-zeo]
  120. # This recipe is used to set permissions for root mode installs
  121. # For options see http://pypi.python.org/pypi/plone.recipe.command
  122. recipe = plone.recipe.command
  123. command =
  124.     echo Dummy references to force this to execute after referenced parts
  125.     echo ${backup:location} ${unifiedinstaller:sudo-command}
  126.     chmod 600 .installed.cfg
  127.     touch ${buildout:directory}/var/zeoserver/zeoserver.log
  128.     find ${buildout:directory}/var -type d -exec chmod 700 {} \;
  129.     chmod 744 ${buildout:directory}/bin/*
  130.  
  131.     chmod 755 ${buildout:directory}/bin/python
  132.     mkdir -pm 755 ${buildout:directory}/{products,src}
  133.     mkdir -pm 755 ${buildout:directory}/var/blobstorage/mp00{1,2,3}bd/tmp
  134.     chown -R ${buildout:effective-user} ${buildout:directory}/var
  135. update-command = ${chown-zeo:command}
  136.  
  137.  
  138.  
  139.  
  140. [zopeskel]
  141. # installs paster and Zopeskel
  142. recipe = zc.recipe.egg
  143. eggs =
  144.     ZopeSkel
  145.     Paste
  146.     PasteDeploy
  147.     PasteScript
  148.     ${buildout:eggs}
  149.  
  150.  
  151. [client1]
  152. # Use this section to install and configure a Zope
  153. # client instance.
  154. # For options see http://pypi.python.org/pypi/plone.recipe.zope2instance
  155. # Additional clients are a
  156. recipe = plone.recipe.zope2instance
  157. zeo-client = true
  158. zeo-address = ${zeoserver:zeo-address}
  159. # The line below sets only the initial password. It will not change an
  160. # existing password.
  161. user = ${buildout:user}
  162. # if we try to start as root, Zope will switch to the user below
  163. effective-user = ${buildout:effective-user}
  164. http-address = ${buildout:http-address}
  165. icp-address = ${buildout:http-address}
  166. blob-storage = ${zeoserver:blob-storage}
  167. shared-blob = on
  168. # change debug-mode to "on" to run in development mode
  169. debug-mode = ${buildout:debug-mode}
  170. # change verbose-security to "on" for detailed security
  171. # errors while developing
  172. verbose-security = ${buildout:verbose-security}
  173. deprecation-warnings = ${buildout:deprecation-warnings}
  174. # Put the log, pid, lock files in var/client1
  175. event-log = ${buildout:directory}/var/client1/event.log
  176. z2-log    = ${buildout:directory}/var/client1/Z2.log
  177. pid-file  = ${buildout:directory}/var/client1/client1.pid
  178. lock-file = ${buildout:directory}/var/client1/client1.lock
  179.  
  180. # If you want Zope to know about any additional eggs, list them here.
  181. # e.g. eggs = ${buildout:eggs} my.package
  182. eggs = ${buildout:eggs}
  183.  
  184. # If you want to register ZCML slugs for any packages, list them here.
  185. # e.g. zcml = my.package my.other.package
  186. zcml = ${buildout:zcml}
  187.    
  188. products = ${buildout:directory}/products
  189.  
  190. # You may also control the environment variables for the instance.
  191. environment-vars = ${buildout:environment-vars}
  192.  
  193. zope-conf-additional =
  194.         <zodb_db mp001bd>
  195.          mount-point /mp001bd
  196.          cache-size 5000
  197.          <zeoclient>
  198.              blob-dir ${buildout:directory}/var/blobstorage/mp001bd
  199.              shared-blob-dir on
  200.              name mp001bd
  201.              server ${buildout:zeo-address}
  202.              storage mp001bd
  203.              var ${buildout:directory}/var
  204.          </zeoclient>        
  205.         </zodb_db>
  206.  
  207.         <zodb_db mp002bd>
  208.          mount-point /mp002bd
  209.          cache-size 5000
  210.          <zeoclient>
  211.              blob-dir ${buildout:directory}/var/blobstorage/mp002bd
  212.              shared-blob-dir on
  213.              name mp002bd
  214.              server ${buildout:zeo-address}
  215.              storage mp001bd
  216.              var ${buildout:directory}/var
  217.          </zeoclient>        
  218.         </zodb_db>
  219.  
  220.         <zodb_db mp003bd>
  221.          mount-point /mp003bd
  222.          cache-size 5000
  223.          <zeoclient>
  224.              blob-dir ${buildout:directory}/var/blobstorage/mp003bd
  225.              shared-blob-dir on
  226.              name mp003bd
  227.              server ${buildout:zeo-address}
  228.              storage mp003bd
  229.              var ${buildout:directory}/var
  230.          </zeoclient>        
  231.         </zodb_db>
  232.  
  233. zodb-temporary-storage =
  234.         <zodb_db temporary>
  235.             <zeoclient>
  236.               server ${buildout:zeo-address}
  237.               storage temp
  238.               name zeostorage
  239.               var ${buildout:directory}/var
  240.             </zeoclient>
  241.             mount-point /temp_folder
  242.             container-class Products.TemporaryFolder.TemporaryContainer
  243.         </zodb_db>
  244.  
  245. [client2]
  246. # a copy of client1, except adjusted address and var location
  247. <= client1
  248. http-address = ${buildout:client2-address}
  249. icp-address = ${buildout:client2-address}
  250. event-log = ${buildout:directory}/var/client2/event.log
  251. z2-log    = ${buildout:directory}/var/client2/Z2.log
  252. pid-file  = ${buildout:directory}/var/client2/client2.pid
  253. lock-file = ${buildout:directory}/var/client2/client2.lock
  254.  
  255. [client3]
  256. # a copy of client1, except adjusted address and var location
  257. <= client1
  258. http-address = ${buildout:client3-address}
  259. icp-address = ${buildout:client3-address}
  260. event-log = ${buildout:directory}/var/client3/event.log
  261. z2-log    = ${buildout:directory}/var/client3/Z2.log
  262. pid-file  = ${buildout:directory}/var/client3/client3.pid
  263. lock-file = ${buildout:directory}/var/client3/client3.lock
  264.  
  265. [client4]
  266. # a copy of client1, except adjusted address and var location
  267. <= client1
  268. http-address = ${buildout:client4-address}
  269. icp-address = ${buildout:client4-address}
  270. event-log = ${buildout:directory}/var/client4/event.log
  271. z2-log    = ${buildout:directory}/var/client4/Z2.log
  272. pid-file  = ${buildout:directory}/var/client4/client4.pid
  273. lock-file = ${buildout:directory}/var/client4/client4.lock
  274.  
  275. [unicode]
  276. recipe = plone.recipe.command
  277. update-command = ${unicode:command}
  278. command =
  279.    cat > ${buildout:directory}/lib/python2.6/site-packages/sitecustomize.py << EOF
  280.    import sys
  281.    sys.setdefaultencoding('utf-8')
  282.    EOF