buildout.cfg 5.27 KB
Newer Older
1
[buildout]
2 3 4

ignore-existing = true

5
parts =
6
  slapos-cookbook
7
  apache-php-postgres
8 9
  rdiff-backup
  dropbear
10
  eggs
11
  instance
Marco Mariani's avatar
Marco Mariani committed
12
  psycopg2
13

14 15
  instance-apache-php
  instance-postgres
16

17 18 19 20
#Contains the importer and exporter recipes for postgres
  instance-postgres-import
  instance-postgres-export

21 22 23 24
#Contains the importer and exporter recipes for apache
  instance-apache-import
  instance-apache-export

25

26 27
extends =
  ../../component/apache-php/buildout.cfg
28
  ../../component/apache/buildout.cfg
29 30 31 32 33 34
  ../../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
35
  ../../component/rdiff-backup/buildout.cfg
36
  ../../component/stunnel/buildout.cfg
37
  ../../component/dropbear/buildout.cfg
38
  ../slapos.cfg
39
  ../resilient/buildout.cfg
40 41


42 43 44 45 46
#----------------
#-- Application-specific part (maarch, etc.)

[application]
recipe = hexagonit.recipe.download
47
# If the provided tarball does not contain top directory, this option should be changed to false
48 49 50 51 52
strip-top-level-dir = true


#----------------
#-- Instance-level buildout profiles.
53

54
[instance]
55
recipe = slapos.recipe.template
56 57
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
58
md5sum = 25d07b5101d5f566398686642ada4cee
59 60
mode = 0644

61
[instance-apache-php]
62
recipe = slapos.recipe.template
63
url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in
64
output = ${buildout:directory}/instance-apache-php.cfg
65
md5sum = 8b9e7ac376cad5235e88a45ece817e6b
66 67
mode = 0644

68
[instance-apache-import]
69
recipe = slapos.recipe.template
70 71 72 73 74 75 76 77 78
url = ${:_profile_base_location_}/apache/instance-apache-import.cfg.in
output = ${buildout:directory}/instance-apache-import.cfg
md5sum = f1dc2a71d362b5d2d36481ffefdd2293
mode = 0644

[instance-apache-export]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/apache/instance-apache-export.cfg.jinja2
rendered = ${buildout:directory}/instance-apache-export.cfg
79
extensions = jinja2.ext.do
80 81 82 83 84 85 86

context = key templateapache instance-apache-php:output
          key templatepbsreadyexport pbsready-export:output

import-list = file parts template-parts:destination
              file replicated template-replicated:destination

87
md5sum = dca811871e293cf3ce1bfc52dd8dab64
88 89
mode = 0644

90
[instance-resilient]
91
recipe = slapos.recipe.template:jinja2
92
template = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
93
rendered = ${buildout:directory}/instance-resilient.cfg
94
extensions = jinja2.ext.do
95

96 97 98
context = key buildout buildout:bin-directory
          key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
99 100 101 102

import-list = file parts template-parts:destination
              file replicated template-replicated:destination

103
md5sum = e8fd20a32c87853ecba2846f50cd0898
104 105
mode = 0644

106
[instance-postgres]
107
recipe = slapos.recipe.template
108
url = ${:_profile_base_location_}/postgres/instance-postgres.cfg.in
109
output = ${buildout:directory}/instance-postgres.cfg
110
md5sum = a2370d9a23e436166b20203f66412608
111 112
mode = 0644

113 114 115 116
[instance-postgres-import]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/postgres/instance-postgres-import.cfg.in
output = ${buildout:directory}/instance-postgres-import.cfg
117
md5sum = 7edfa157ddccc27e99bf128fc1c2b9ee
118
mode = 0644
119

120 121 122 123
[instance-postgres-export]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/postgres/instance-postgres-export.cfg.in
output = ${buildout:directory}/instance-postgres-export.cfg
124
md5sum = d95205a5fc2825e9709ed6db295111e2
125
mode = 0644
126

127 128 129 130

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

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

134

Marco Mariani's avatar
Marco Mariani committed
135 136 137 138
[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
139
environment = psycopg2-env
Marco Mariani's avatar
Marco Mariani committed
140 141 142 143 144 145 146 147
include-dirs =
    ${postgresql:location}/include
library-dirs =
    ${postgresql:location}/lib
rpath = 
    ${postgresql:location}/lib


148 149 150 151 152 153 154 155 156 157 158 159 160 161
#----------------
#--
#-- 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 =

#----------------
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
#-- 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
179

Marco Mariani's avatar
Marco Mariani committed
180
[versions]
181
apache-libcloud = 0.12.1
182
async = 0.6.1
183
cp.recipe.cmd = 0.4
184
gitdb = 0.5.4
185
plone.recipe.command = 1.1
186 187
pycrypto = 2.6
slapos.recipe.template = 2.4.2
188
slapos.toolbox = 0.40.4
189 190 191
smmap = 0.8.2

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
192
# slapos.toolbox==0.40.2
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
193
GitPython = 2.0.2
194 195

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
196
# slapos.toolbox==0.40.2
197 198 199
atomize = 0.1.1

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
200
# slapos.toolbox==0.40.2
201 202 203
feedparser = 5.1.3

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
204
# slapos.toolbox==0.40.2
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
205
paramiko = 2.0.0
206 207

# Required by:
208 209
# slapos.recipe.maarch==0.4
psycopg2 = 2.4.6
210

211
# Required by:
212 213
# zope.testing==4.1.2
zope.exceptions = 4.0.6
214 215 216

# Required by:
# cp.recipe.cmd==0.4
217
zope.testing = 4.1.2