buildout.cfg 2.69 KB
Newer Older
1 2 3 4
[buildout]
parts =
  apache-php-postgres
  eggs
5
  instance
Marco Mariani's avatar
Marco Mariani committed
6
  psycopg2
7 8
  instance-apache-php
  instance-postgres
9

10 11
  instance-default-root

12 13 14 15 16 17 18 19 20 21 22 23 24 25
extends =
  ../../component/apache/buildout.cfg
  ../../component/apache-php/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/gzip/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/postgresql/buildout.cfg
  ../../component/stunnel/buildout.cfg
  ../slapos.cfg



26 27 28 29 30 31 32 33 34 35
#----------------
#-- Application-specific part (maarch, etc.)

[application]
recipe = hexagonit.recipe.download
strip-top-level-dir = true


#----------------
#-- Instance-level buildout profiles.
36

37
[instance]
38
recipe = slapos.recipe.template
39 40
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
41
md5sum = 35d440866b4253dfa9f5ff291835fa50
42 43
mode = 0644

44
[instance-apache-php]
45
recipe = slapos.recipe.template
46
url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in
47 48
output = ${buildout:directory}/instance-apache-php.cfg
md5sum = fb34918c73ba242ffc08dfd7745367b3
49 50
mode = 0644

51
[instance-postgres]
52
recipe = slapos.recipe.template
53
url = ${:_profile_base_location_}/postgres/instance-postgres.cfg.in
54 55
output = ${buildout:directory}/instance-postgres.cfg
md5sum = 1dd96699e54575d8787295a4c29f1ddb
56 57 58 59
mode = 0644



60 61 62 63

#----------------
#-- Postgres driver for Python recipes.

Marco Mariani's avatar
Marco Mariani committed
64 65 66
[psycopg2-env]
PATH = ${postgresql:location}/bin:%(PATH)s

67

Marco Mariani's avatar
Marco Mariani committed
68 69 70 71
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
define = PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3
Marco Mariani's avatar
Marco Mariani committed
72
environment = psycopg2-env
Marco Mariani's avatar
Marco Mariani committed
73 74 75 76 77 78 79
include-dirs =
    ${postgresql:location}/include
library-dirs =
    ${postgresql:location}/lib
rpath = 
    ${postgresql:location}/lib

80 81 82 83 84 85
[instance-default-root]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-default-root.cfg.in
output = ${buildout:directory}/instance-default-root.cfg
md5sum = 53c9020f7a0b5203f976e069e455787b
mode = 0644
Marco Mariani's avatar
Marco Mariani committed
86

87 88 89 90 91 92 93 94 95 96 97 98 99 100
#----------------
#--
#-- Optional part allowing applications using this stack to run a custom
#-- instance.cfg at the end of Apache/PHP instance deployment.
#-- To use it in your application, just override those two parameters, like:

[custom-application-deployment]
# path = /path/to/instance-custom.cfg
# part-list = part1 part2
# See software/maarch/software.cfg for an example.
path =
part-list =

#----------------
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
#-- Dummy parts in case no application configuration file is needed

[application-template]
filename =
location =

[application-configuration]
location =

#----------------

[eggs]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  ${psycopg2:egg}
  slapos.toolbox
  cns.recipe.symlink
119