manual port of changes on lapp-resilient over this new branch
[slapos.git] / stack / lapp / buildout.cfg
1 [buildout]
2 parts =
3   apache-php-postgres
4   rdiff-backup
5   dropbear
6   eggs
7   instance
8   psycopg2
9
10   instance-apache-php
11   instance-postgres
12
13 #Contains the importer and exporter recipes for postgres
14   instance-postgres-import
15   instance-postgres-export
16
17   instance-default-root
18
19
20 extends =
21   ../resilient/buildout.cfg
22   ../../component/apache/buildout.cfg
23   ../../component/apache-php/buildout.cfg
24   ../../component/dash/buildout.cfg
25   ../../component/dcron/buildout.cfg
26   ../../component/gzip/buildout.cfg
27   ../../component/logrotate/buildout.cfg
28   ../../component/lxml-python/buildout.cfg
29   ../../component/postgresql/buildout.cfg
30   ../../component/rdiff-backup/buildout.cfg
31   ../../component/stunnel/buildout.cfg
32   ../../component/dropbear/buildout.cfg
33   ../slapos.cfg
34
35
36 # XXX TODO
37 #[instance-recipe]
38 #egg = slapos.cookbook
39 #module = lamp.request
40
41 #----------------
42 #-- Application-specific part (maarch, etc.)
43
44 [application]
45 recipe = hexagonit.recipe.download
46 strip-top-level-dir = true
47
48
49 #----------------
50 #-- Instance-level buildout profiles.
51
52 [instance]
53 recipe = slapos.recipe.template
54 url = ${:_profile_base_location_}/instance.cfg.in
55 output = ${buildout:directory}/instance.cfg
56 md5sum = 1aaf3ea7b14e09e66904bdb80e3cfe2f
57 mode = 0644
58
59 [instance-apache-php]
60 recipe = slapos.recipe.template
61 url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in
62 output = ${buildout:directory}/instance-apache-php.cfg
63 md5sum = fb34918c73ba242ffc08dfd7745367b3
64 mode = 0644
65
66 [instance-apache-backup]
67 recipe = slapos.recipe.template
68 url = ${:_profile_base_location_}/apache/instance-apache-backup.cfg.in
69 output = ${buildout:directory}/instance-apache-backup.cfg
70 md5sum = 48f969d82319a9d145570f5f0fd27672
71 mode = 0644
72
73 [template-resilient-lapp]
74 recipe = slapos.recipe.template:jinja2
75 template = ${:_profile_base_location_}/template-resilient.cfg.in
76 rendered = ${buildout:directory}/instance-resilient.cfg
77
78 context = key templateapache instance-apache-php:output
79           key dropbear dropbear:location
80           key buildout buildout:bin-directory
81
82 import-list = file parts template-parts:destination
83               file replicated template-replicated:destination
84
85 md5sum = 29b44a5783263581bf2258de9e994a57
86 mode = 0644
87  
88
89 [instance-postgres]
90 recipe = slapos.recipe.template
91 url = ${:_profile_base_location_}/postgres/instance-postgres.cfg.in
92 output = ${buildout:directory}/instance-postgres.cfg
93 md5sum = c2e7b95e457857d35f687a67424363a4
94 mode = 0644
95
96 [instance-postgres-import]
97 recipe = slapos.recipe.template
98 url = ${:_profile_base_location_}/postgres/instance-postgres-import.cfg.in
99 output = ${buildout:directory}/instance-postgres-import.cfg
100 md5sum = feb43a65eefd9c5dea8e7d3551465956
101 mode = 0644
102
103 [instance-postgres-export]
104 recipe = slapos.recipe.template
105 url = ${:_profile_base_location_}/postgres/instance-postgres-export.cfg.in
106 output = ${buildout:directory}/instance-postgres-export.cfg
107 md5sum = 7bce31bc22a731a8fc6119aee96586f5
108 mode = 0644
109
110
111 #----------------
112 #-- Postgres driver for Python recipes.
113
114 [psycopg2-env]
115 PATH = ${postgresql:location}/bin:%(PATH)s
116
117
118 [psycopg2]
119 recipe = zc.recipe.egg:custom
120 egg = psycopg2
121 define = PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3
122 environment = psycopg2-env
123 include-dirs =
124     ${postgresql:location}/include
125 library-dirs =
126     ${postgresql:location}/lib
127 rpath = 
128     ${postgresql:location}/lib
129
130 [instance-default-root]
131 recipe = slapos.recipe.template
132 url = ${:_profile_base_location_}/instance-default-root.cfg.in
133 output = ${buildout:directory}/instance-default-root.cfg
134 md5sum = 53c9020f7a0b5203f976e069e455787b
135 mode = 0644
136
137 #----------------
138 #--
139 #-- Optional part allowing applications using this stack to run a custom
140 #-- instance.cfg at the end of Apache/PHP instance deployment.
141 #-- To use it in your application, just override those two parameters, like:
142
143 [custom-application-deployment]
144 # path = /path/to/instance-custom.cfg
145 # part-list = part1 part2
146 # See software/maarch/software.cfg for an example.
147 path =
148 part-list =
149
150 #----------------
151 #-- Dummy parts in case no application configuration file is needed
152
153 [application-template]
154 filename =
155 location =
156
157 [application-configuration]
158 location =
159
160 #----------------
161
162 [eggs]
163 recipe = zc.recipe.egg
164 eggs =
165   ${lxml-python:egg}
166   ${psycopg2:egg}
167   slapos.toolbox
168   cns.recipe.symlink
169