Advertisement
mattbierner

prod buildout

Feb 10th, 2012
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.84 KB | None | 0 0
  1. ############################################################################
  2. # base.cfg
  3. # --------------------------------------------------------------------------
  4.  
  5.  
  6. [buildout]
  7. eggs-directory=../buildout-cache/eggs
  8. download-cache=../buildout-cache/downloads
  9.  
  10. newest = false
  11.  
  12. versions = versions
  13.  
  14. # Add additional egg download sources here. dist.plone.org contains archives
  15. # of Plone packages.
  16. find-links =
  17. http://dist.plone.org
  18. http://dist.plone.org/release/4.1.2
  19. http://download.zope.org/ppix/
  20. http://download.zope.org/distribution/
  21. http://effbot.org/downloads
  22.  
  23. # unzip all eggs for easier debugging
  24. unzip = true
  25.  
  26. # Load the DumpPickedVersions extension, which will notify
  27. # you of versions picked by buildout that were not specifically
  28. # pinned.
  29. extensions = buildout.dumppickedversions
  30.  
  31.  
  32. [zopepy]
  33. # installs a zopepy python interpreter that runs with your
  34. # full Zope environment
  35. recipe = zc.recipe.egg
  36. eggs = ${buildout:eggs}
  37. interpreter = zopepy
  38. scripts = zopepy
  39.  
  40.  
  41. [unifiedinstaller]
  42. # This recipe installs the plonectl script and a few other convenience
  43. # items.
  44. # For options see http://pypi.python.org/pypi/plone.recipe.unifiedinstaller
  45. recipe = plone.recipe.unifiedinstaller
  46. user = ${buildout:user}
  47. primary-port = ${buildout:http-address}
  48. sudo-command = sudo -u plone
  49.  
  50.  
  51. [repozo]
  52. # This recipe builds the repozo script for non-zeo installations.
  53. recipe = zc.recipe.egg
  54. eggs = ZODB3
  55. scripts = repozo
  56.  
  57.  
  58. [backup]
  59. # This recipe builds the backup, restore and snapshotbackup commands.
  60. # For options see http://pypi.python.org/pypi/collective.recipe.backup
  61. recipe = collective.recipe.backup
  62. location = ${buildout:backups-dir}/backups
  63. snapshotlocation = ${buildout:backups-dir}/snapshotbackups
  64.  
  65.  
  66. [zeoserver]
  67. # Use this section to install and configure a Zope
  68. # Enterprise Objects server.
  69. # For options see http://pypi.python.org/pypi/plone.recipe.zeoserver
  70. recipe = plone.recipe.zeoserver
  71. zeo-address = ${buildout:zeo-address}
  72. # if we try to start as root, Zope will switch to the user below
  73. effective-user = ${buildout:effective-user}
  74. # Put the log, pid and socket files in var/zeoserver
  75. zeo-log = ${buildout:directory}/var/zeoserver/zeoserver.log
  76. pid-file = ${buildout:directory}/var/zeoserver/zeoserver.pid
  77. socket-name = ${buildout:directory}/var/zeoserver/zeo.zdsock
  78. blob-storage = ${buildout:directory}/var/blobstorage
  79. eggs = ${buildout:eggs}
  80.  
  81. zeo-conf-additional =
  82. <filestorage 2>
  83. path ${buildout:directory}/var/filestorage/Async.fs
  84. </filestorage>
  85.  
  86.  
  87. [chown-zeo]
  88. # This recipe is used to set permissions for root mode installs
  89. # For options see http://pypi.python.org/pypi/plone.recipe.command
  90. recipe = plone.recipe.command
  91. command =
  92. echo Dummy references to force this to execute after referenced parts
  93. echo ${backup:location} ${unifiedinstaller:sudo-command}
  94. chmod 600 .installed.cfg
  95. touch ${buildout:directory}/var/zeoserver/zeoserver.log
  96. find ${buildout:directory}/var -type d -exec chmod 700 {} \;
  97. chmod 744 ${buildout:directory}/bin/*
  98. update-command = ${chown-zeo:command}
  99.  
  100.  
  101. [zopeskel]
  102. # installs paster and Zopeskel
  103. recipe = zc.recipe.egg
  104. eggs =
  105. PasteScript
  106. ZopeSkel
  107.  
  108.  
  109.  
  110. [instance-base]
  111. zeo-client = true
  112. zeo-address = ${zeoserver:zeo-address}
  113. user = ${buildout:user}
  114. effective-user = ${buildout:effective-user}
  115. http-address = ${buildout:http-address}
  116. blob-storage = ${zeoserver:blob-storage}
  117. shared-blob = on
  118. debug-mode = ${buildout:debug-mode}
  119. verbose-security = ${buildout:verbose-security}
  120. deprecation-warnings = ${buildout:deprecation-warnings}
  121.  
  122. eggs = ${buildout:eggs}
  123. zcml = ${buildout:zcml}
  124.  
  125. products = ${buildout:directory}/products
  126.  
  127. environment-vars =
  128. PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs
  129.  
  130.  
  131.  
  132. ############################################################################
  133. # buildout.cfg
  134. # --------------------------------------------------------------------------
  135.  
  136. [buildout]
  137.  
  138. extends =
  139. base.cfg
  140. versions.cfg
  141. http://dist.plone.org/release/4.1-latest/versions.cfg
  142.  
  143. parts =
  144. zeoserver
  145. zopepy
  146. zopeskel
  147. unifiedinstaller
  148. backup
  149. chown-zeo
  150. zopeskel
  151. paster
  152. worker
  153.  
  154. effective-user = plone
  155.  
  156. ############################################
  157. # Ports
  158. # -----
  159. # Specify the ports on which your Zope installation
  160. # will listen.
  161. zeo-address = 127.0.0.1:8100
  162. http-address = 8080
  163. webdav-address = 1980
  164.  
  165. ############################################
  166. # Eggs
  167. # ----
  168. eggs =
  169. Plone
  170. zope.keyreference
  171. plone.app.async
  172. Pillow
  173. plone.reload
  174. collective.plonetruegallery[all]
  175. collective.geo.bundle
  176. collective.portletpage
  177. plonetheme.ewb_case
  178. ewb_case.portlet.get_involved
  179. ewb_case.casclient
  180. wc.pageturner
  181.  
  182. ############################################
  183. # ZCML Slugs
  184. # ----------
  185. zcml =
  186. plonetheme.ewb_case
  187. ewb_case.portlet.get_involved
  188. ewb_case.casclient
  189.  
  190. ############################################
  191. # Debugging
  192. # --------
  193. debug-mode = off
  194. deprecation-warnings = off
  195. verbose-security = off
  196.  
  197. ############################################
  198. # Backup Directory
  199. # ----------------
  200. backups-dir=${buildout:directory}/var
  201.  
  202. ############################################
  203. # Initial User
  204. # ------------
  205. # IMPORTANT Change the password after installation
  206. user=admin:changeme
  207.  
  208. ############################################
  209. # Versions Specification
  210. # ----------------------
  211. [versions]
  212. lxml = 2.3
  213. Cheetah = 2.2.1
  214. Pillow = 1.7.2
  215. Products.DocFinderTab = 1.0.4
  216. ZopeSkel = 2.19
  217. collective.recipe.backup = 1.7
  218. collective.recipe.omelette = 0.10
  219. plone.recipe.command = 1.1
  220. plone.recipe.unifiedinstaller = 4.1
  221. Shapely = 1.2.13
  222. collective.geo.bundle = 0.1
  223. redturtle.video = 0.7.1
  224. collective.rtvideo.youtube = 0.1.0
  225. collective.plonetruegallery = 1.3.3
  226. flickrapi = 1.4.2
  227. gdata = 2.0.16
  228. collective.portletpage = 1.1
  229.  
  230. ############################################
  231. # Worker
  232. # ------
  233. [worker]
  234. recipe = plone.recipe.zope2instance
  235. zserver-threads = 2
  236. zeo-client = true
  237. zeo-address = ${zeoserver:zeo-address}
  238. blob-storage = ${zeoserver:blob-storage}
  239. shared-blob = on
  240. user = ${buildout:user}
  241. effective-user = ${buildout:effective-user}
  242. debug-mode = ${buildout:debug-mode}
  243. verbose-security = ${buildout:verbose-security}
  244. http-address = 8084
  245. eggs = ${buildout:eggs}
  246. zcml = ${buildout:zcml}
  247. zcml-additional =
  248. <include package="plone.app.async" file="multi_db_worker.zcml" />
  249.  
  250. environment-vars =
  251. ZC_ASYNC_UUID ${buildout:directory}/var/worker-uuid.txt
  252.  
  253. zope-conf-additional =
  254. <zodb_db async>
  255. cache-size ${instance:zodb-cache-size}
  256. <zeoclient>
  257. server ${zeoserver:zeo-address}
  258. storage 2
  259. name asyncstorage
  260. blob-dir ${zeoserver:blob-storage}
  261. shared-blob-dir on
  262. var ${buildout:parts-directory}/worker/var
  263. cache-size ${instance:zeo-client-cache-size}
  264. </zeoclient>
  265. mount-point /zasync
  266. </zodb_db>
  267.  
  268.  
  269. ############################################
  270. # zopeskel
  271. # --------
  272. [zopeskel]
  273. recipe = zc.recipe.egg
  274. eggs =
  275. ZopeSkel<2.99
  276. zopeskel.dexterity
  277. ${buildout:eggs}
  278.  
  279.  
  280. ############################################
  281. # paster
  282. # --------
  283. [paster]
  284. recipe = zc.recipe.egg
  285. eggs =
  286. PasteScript
  287. ZopeSkel<2.99
  288. zopeskel.dexterity
  289. ${buildout:eggs}
  290.  
  291.  
  292.  
  293.  
  294.  
  295. ############################################################################
  296. # deployment.cfg
  297. # --------------------------------------------------------------------------
  298. [buildout]
  299. extends =
  300. buildout.cfg
  301.  
  302. parts +=
  303. instance
  304. instance2
  305. debug-instance
  306.  
  307. ############################################
  308. # instance
  309. # --------
  310. [instance]
  311. recipe = plone.recipe.zope2instance
  312. <= instance-base
  313. http-address = 8081
  314. webdav-address = ${buildout:webdav-address}
  315. event-log = ${buildout:directory}/var/instance/event.log
  316. z2-log = ${buildout:directory}/var/instance/Z2.log
  317. pid-file = ${buildout:directory}/var/instance/instance.pid
  318. lock-file = ${buildout:directory}/var/instance/instance.lock
  319.  
  320. zodb-cache-size = 50000
  321. zeo-client-cache-size = 300MB
  322.  
  323. environment-vars +=
  324. ZC_ASYNC_UUID ${buildout:directory}/var/instance-uuid.txt
  325.  
  326. zcml-additional =
  327. <include package="plone.app.async" file="multi_db_instance.zcml" />
  328.  
  329.  
  330. zope-conf-additional =
  331. <zodb_db async>
  332. cache-size ${instance:zodb-cache-size}
  333. <zeoclient>
  334. server ${zeoserver:zeo-address}
  335. storage 2
  336. name asyncstorage
  337. blob-dir ${zeoserver:blob-storage}
  338. shared-blob-dir on
  339. var ${buildout:parts-directory}/instance/var
  340. cache-size ${instance:zeo-client-cache-size}
  341. </zeoclient>
  342. mount-point /zasync
  343. </zodb_db>
  344.  
  345.  
  346. ############################################
  347. # instance2
  348. # --------
  349. [instance2]
  350. recipe = plone.recipe.zope2instance
  351. <= instance-base
  352. http-address = 8082
  353. event-log = ${buildout:directory}/var/instance2/event.log
  354. z2-log = ${buildout:directory}/var/instance2/Z2.log
  355. pid-file = ${buildout:directory}/var/instance2/instance2.pid
  356. lock-file = ${buildout:directory}/var/instance2/instance2.lock
  357.  
  358. environment-vars +=
  359. ZC_ASYNC_UUID ${buildout:directory}/var/instance2-uuid.txt
  360.  
  361. zcml-additional =
  362. <include package="plone.app.async" file="multi_db_instance.zcml" />
  363.  
  364. zope-conf-additional =
  365. <zodb_db async>
  366. cache-size ${instance:zodb-cache-size}
  367. <zeoclient>
  368. server ${zeoserver:zeo-address}
  369. storage 2
  370. name asyncstorage
  371. blob-dir ${zeoserver:blob-storage}
  372. shared-blob-dir on
  373. var ${buildout:parts-directory}/instance2/var
  374. cache-size ${instance:zeo-client-cache-size}
  375. </zeoclient>
  376. mount-point /zasync
  377. </zodb_db>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement