Fix the issue that generate.cloudooo recipe does not work
[slapos.git] / software / erp5 / instance-zope.cfg
1 [buildout]
2 parts =
3   certificate-authority
4   publish-apache-zope-backend-connection-string
5   zope-instance
6   apache-zope-backend-instance
7   ca-apache-zope-backend
8   logrotate
9   erp5-certificate-authority
10   logrotate-entry-zope
11   cron
12   cron-entry-logrotate
13   binary-link
14
15 eggs-directory = ${buildout:eggs-directory}
16 develop-eggs-directory = ${buildout:develop-eggs-directory}
17 offline = true
18
19 [slap-parameter]
20 # By default backend disallows the access
21 access-control-string = none
22
23 [publish-apache-zope-backend-connection-string]
24 recipe = slapos.cookbook:publish
25 url = https://$${zope-instance:user}:$${zope-instance:password}@[$${apache-zope-backend-instance:ip}]:$${apache-zope-backend-instance:port}
26 url-deadlock = $${:url}/$${zope-instance:deadlock-path}?$${zope-instance:deadlock-password}
27
28 [apache-zope-backend-instance]
29 recipe = slapos.cookbook:apache.zope.backend
30 backend = http://$${zope-instance:ip}:$${zope-instance:port}/
31 ip = $${slap-network-information:global-ipv6}
32 port = 16001
33 wrapper = $${rootdirectory:bin}/apache
34 key-file = $${directory:apache-conf}/apache.key
35 cert-file = $${directory:apache-conf}/apache.crt
36 configuration-file = $${directory:apache-conf}/apache.conf
37 access-control-string = $${slap-parameter:access-control-string}
38 pid-file = $${basedirectory:run}/apache.pid
39 lock-file = $${basedirectory:run}/apache.lock
40 error-log = $${basedirectory:log}/apache-error.log
41 access-log = $${basedirectory:log}/apache-access.log
42 apache-binary = ${apache:location}/bin/httpd
43
44 [ca-apache-zope-backend]
45 <= certificate-authority
46 recipe = slapos.cookbook:certificate_authority.request
47 key-file = $${apache-zope-backend-instance:key-file}
48 cert-file = $${apache-zope-backend-instance:cert-file}
49 executable = $${apache-zope-backend-instance:wrapper}
50 wrapper = $${basedirectory:services}/apache
51
52 [zope-instance]
53 recipe = slapos.cookbook:generic.zope
54
55 # XXX: products won't be needed as soon as all ERP5 (and products-deps)
56 # products will be eggified so then it will be possible to use them thanks to
57 # availability in software's eggs
58 products = ${products:list}
59
60 # Options
61 user = zope
62 port = 12001
63 ip = $${slap-network-information:local-ipv4}
64 zodb-cache-size = 5000
65 thread-amount = 4
66 zodb-path = $${directory:zodb}/main.cfg
67 deadlock-path = /manage_debug_threads
68
69 # Paths
70 wrapper = $${basedirectory:services}/zope-development
71 instance-path = $${directory:instance}
72 instance-etc = $${directory:instance-etc}
73 instance-products = $${directory:instance-products}
74 bt5-repository = $${rootdirectory:var}/bt5_repository
75 tmp-path = $${rootdirectory:tmp}
76 bin-path = $${rootdirectory:bin}
77 site-zcml = $${:instance-etc}/site.zcml
78 logrotate-post = $${rootdirectory:bin}/zope-post-logrotate
79 pid-file = $${basedirectory:run}/zope.pid
80 lock-file = $${basedirectory:run}/zope.lock
81 event-log = $${basedirectory:log}/zope-event.log
82 z2-log = $${basedirectory:log}/zope-Z2.log
83 configuration-file = $${rootdirectory:etc}/zope.conf
84 inituser = $${:instance-path}/inituser
85 # Binary information
86 runzope-binary = ${buildout:bin-directory}/runzope
87
88 # Defaults
89 bt5-repository-list =
90
91 [logrotate]
92 recipe = slapos.cookbook:logrotate
93 # Binaries
94 logrotate-binary = ${logrotate:location}/usr/sbin/logrotate
95 gzip-binary = ${gzip:location}/bin/gzip
96 gunzip-binary = ${gzip:location}/bin/gunzip
97 # Directories
98 wrapper = $${rootdirectory:bin}/logrotate
99 conf = $${rootdirectory:etc}/logrotate.conf
100 logrotate-entries = $${directory:logrotate-entries}
101 backup = $${directory:logrotate-backup}
102 state-file = $${rootdirectory:srv}/logrotate.status
103
104 [logrotate-entry-zope]
105 <= logrotate
106 recipe = slapos.cookbook:logrotate.d
107 name = zope
108 log = $${zope-instance:event-log} $${zope-instance:z2-log}
109 frequency = daily
110 rotate-num = 30
111 post = ${buildout:bin-directory}/killpidfromfile $${zope-instance:pid-file} SIGUSR2
112 sharedscripts = true
113 notifempty = true
114 create = true
115
116 [logrotate-entry-apache-zope-backend]
117 <= logrotate
118 recipe = slapos.cookbook:logrotate.d
119 name = zope
120 log = $${apache-zope-backend-instance:error-log} $${apache-zope-backend-instance:access-log}
121 frequency = daily
122 rotate-num = 30
123 post = ${buildout:bin-directory}/killpidfromfile $${apache-zope-backend-instance:pid-file} SIGUSR1
124 sharedscripts = true
125 notifempty = true
126 create = true
127
128 [cron]
129 recipe = slapos.cookbook:cron
130 dcrond-binary = ${dcron:location}/sbin/crond
131 cron-entries = $${directory:cron-entries}
132 crontabs = $${directory:crontabs}
133 cronstamps = $${directory:cronstamps}
134 catcher = $${cron-simplelogger:binary}
135 binary = $${basedirectory:services}/crond
136
137 [cron-simplelogger]
138 recipe = slapos.cookbook:simplelogger
139 binary = $${rootdirectory:bin}/cron_simplelogger
140 output = $${directory:cronoutput}
141
142 [cron-entry-logrotate]
143 <= cron
144 recipe = slapos.cookbook:cron.d
145 name = logrotate
146 frequency = 0 0 * * *
147 command = $${logrotate:wrapper}
148
149 [binary-link]
150 recipe = slapos.cookbook:symbolic.link
151 target-directory = $${rootdirectory:bin}
152 link-binary = 
153   ${coreutils:location}/bin/basename
154   ${coreutils:location}/bin/cat
155   ${coreutils:location}/bin/cp
156   ${coreutils:location}/bin/ls
157   ${coreutils:location}/bin/tr
158   ${coreutils:location}/bin/uname
159   ${git:location}/bin/git
160   ${graphviz:location}/bin/dot
161   ${grep:location}/bin/grep
162   ${imagemagick:location}/bin/convert
163   ${imagemagick:location}/bin/identify
164   ${mariadb:location}/bin/mysql
165   ${mariadb:location}/bin/mysqldump
166   ${pdftk:location}/bin/pdftk
167   ${sed:location}/bin/sed
168   ${tesseract:location}/bin/tesseract
169   ${w3m:location}/bin/w3m
170   ${poppler:location}/bin/pdfinfo
171   ${poppler:location}/bin/pdftotext
172   ${poppler:location}/bin/pdftohtml
173 [certificate-authority]
174 recipe = slapos.cookbook:certificate_authority
175 openssl-binary = ${openssl:location}/bin/openssl
176 ca-dir = $${directory:ca-dir}
177 requests-directory = $${cadirectory:requests}
178 wrapper = $${basedirectory:services}/ca
179 ca-private = $${cadirectory:private}
180 ca-certs = $${cadirectory:certs}
181 ca-newcerts = $${cadirectory:newcerts}
182 ca-crl = $${cadirectory:crl}
183
184 [cadirectory]
185 recipe = slapos.cookbook:mkdirectory
186 requests = $${directory:ca-dir}/requests
187 private = $${directory:ca-dir}/private
188 certs = $${directory:ca-dir}/certs
189 newcerts = $${directory:ca-dir}/newcerts
190 crl = $${directory:ca-dir}/crl
191
192 [rootdirectory]
193 recipe = slapos.cookbook:mkdirectory
194 etc = $${buildout:directory}/etc
195 var = $${buildout:directory}/var
196 srv = $${buildout:directory}/srv
197 bin = $${buildout:directory}/bin
198 tmp = $${buildout:directory}/tmp
199
200 [basedirectory]
201 recipe = slapos.cookbook:mkdirectory
202 log = $${rootdirectory:var}/log
203 services = $${rootdirectory:etc}/run
204 run = $${rootdirectory:var}/run
205 backup = $${rootdirectory:srv}/backup
206
207 [erp5-certificate-authority]
208 recipe = slapos.cookbook:certificate_authority
209 openssl-binary = ${openssl:location}/bin/openssl
210 ca-dir = $${directory:erp5-ca-dir}
211 requests-directory = $${erp5-cadirectory:requests}
212 wrapper = $${basedirectory:services}/erp5-ca
213 ca-private = $${erp5-cadirectory:private}
214 ca-certs = $${erp5-cadirectory:certs}
215 ca-newcerts = $${erp5-cadirectory:newcerts}
216 ca-crl = $${erp5-cadirectory:crl}
217
218 [erp5-cadirectory]
219 recipe = slapos.cookbook:mkdirectory
220 requests = $${directory:erp5-ca-dir}/requests/
221 private = $${directory:erp5-ca-dir}/private/
222 certs = $${directory:erp5-ca-dir}/certs/
223 newcerts = $${directory:erp5-ca-dir}/newcerts/
224 crl = $${directory:erp5-ca-dir}/crl/
225
226 [directory]
227 recipe = slapos.cookbook:mkdirectory
228 zodb = $${rootdirectory:srv}/zodb
229 instance = $${rootdirectory:srv}/erp5shared
230 instance-etc = $${:instance}/etc
231 apache-conf = $${rootdirectory:etc}/apache
232 instance-etc-package-include = $${:instance}/etc/package-include
233 # because of bug in slapos.recipe.template keys are lowercased
234 instance-document = $${:instance}/Document
235 instance-propertysheet = $${:instance}/PropertySheet
236 instance-products = $${:instance}/Products
237 instance-extensions = $${:instance}/Extensions
238 instance-constraint = $${:instance}/Constraint
239 instance-import = $${:instance}/import
240 instance-lib = $${:instance}/lib
241 instance-tests = $${:instance}/tests
242 erp5-ca-dir = $${rootdirectory:srv}/erp5-ca/
243 ca-dir = $${rootdirectory:srv}/ssl
244 cron-entries = $${rootdirectory:etc}/cron.d
245 crontabs = $${rootdirectory:etc}/crontabs
246 cronstamps = $${rootdirectory:etc}/cronstamps
247 cronoutput = $${basedirectory:log}/cron
248 logrotate-backup = $${basedirectory:backup}/logrotate
249 logrotate-entries = $${rootdirectory:etc}/logrotate.d