buildout.cfg 5.32 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
  ../../component/pycurl/buildout.cfg
39
  ../slapos.cfg
40
  ../resilient/buildout.cfg
41 42


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

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


#----------------
#-- Instance-level buildout profiles.
55

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

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

70
[instance-apache-import]
71
recipe = slapos.recipe.template
72 73 74 75 76 77 78 79 80
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
81
extensions = jinja2.ext.do
82 83 84 85 86 87 88

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

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

89
md5sum = e679cbe62f17bb320a22444425e1401a
90 91
mode = 0644

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

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

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

105
md5sum = 20b4f2d8125a4f9cab5b9145be6b47b5
106 107
mode = 0644

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

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

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

129 130 131 132

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

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

136

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


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

#----------------
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
#-- 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}
180
  ${pycurl:egg}
181
  slapos.toolbox
182

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

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
194
# slapos.toolbox==0.40.2
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
195
GitPython = 2.0.8
196 197

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

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

# Required by:
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
206
# slapos.toolbox==0.40.2
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
207
paramiko = 2.0.1
208 209

# Required by:
210 211
# slapos.recipe.maarch==0.4
psycopg2 = 2.4.6
212

213
# Required by:
214 215
# zope.testing==4.1.2
zope.exceptions = 4.0.6
216 217 218

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