install more symlinks for poppler binaries : pdfseparate and pdfunite.
[slapos.git] / software / erp5 / instance-zope.cfg.in
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   bt5-erp5-link
15
16 eggs-directory = {{ eggs_directory }}
17 develop-eggs-directory = {{ develop_eggs_directory }}
18 offline = true
19
20 [slap-parameter]
21 # By default, if no white list is specified, backend allows access to everyone
22 access-control-string = all
23
24 [publish-apache-zope-backend-connection-string]
25 recipe = slapos.cookbook:publish
26 url = https://${zope-instance:user}:${zope-instance:password}@[${apache-zope-backend-instance:ip}]:${apache-zope-backend-instance:port}
27 url-deadlock = ${:url}/${zope-instance:deadlock-path}?${zope-instance:deadlock-password}
28
29 [apache-zope-backend-instance]
30 recipe = slapos.cookbook:apache.zope.backend
31 backend = http://${zope-instance:ip}:${zope-instance:port}/
32 ip = ${slap-network-information:global-ipv6}
33 port = 16001
34 wrapper = ${rootdirectory:bin}/apache
35 key-file = ${directory:apache-conf}/apache.key
36 cert-file = ${directory:apache-conf}/apache.crt
37 configuration-file = ${directory:apache-conf}/apache.conf
38 access-control-string = ${slap-parameter:access-control-string}
39 pid-file = ${basedirectory:run}/apache.pid
40 lock-file = ${basedirectory:run}/apache.lock
41 ssl-session-cache = ${basedirectory:log}/apache-ssl-session-cache
42 error-log = ${basedirectory:log}/apache-error.log
43 access-log = ${basedirectory:log}/apache-access.log
44 apache-binary = {{ apache_location }}/bin/httpd
45 scheme = https
46
47 [ca-apache-zope-backend]
48 <= certificate-authority
49 recipe = slapos.cookbook:certificate_authority.request
50 key-file = ${apache-zope-backend-instance:key-file}
51 cert-file = ${apache-zope-backend-instance:cert-file}
52 executable = ${apache-zope-backend-instance:wrapper}
53 wrapper = ${basedirectory:services}/apache
54
55 [zope-instance]
56 recipe = slapos.cookbook:generic.zope
57
58 # Options
59 user = zope
60 port = 12001
61 ip = ${slap-network-information:local-ipv4}
62 zodb-cache-size = 5000
63 thread-amount = 4
64 zodb-path = ${directory:zodb}/main.fs
65 deadlock-path = /manage_debug_threads
66
67 # Paths
68 wrapper = ${basedirectory:services}/zope-development
69 instance-path = ${directory:instance}
70 instance-etc = ${directory:instance-etc}
71 instance-products = ${directory:instance-products}
72 bt5-repository = ${rootdirectory:var}/bt5_repository
73 tmp-path = ${rootdirectory:tmp}
74 bin-path = ${rootdirectory:bin}
75 site-zcml = ${:instance-etc}/site.zcml
76 logrotate-post = ${rootdirectory:bin}/zope-post-logrotate
77 pid-file = ${basedirectory:run}/zope.pid
78 lock-file = ${basedirectory:run}/zope.lock
79 event-log = ${basedirectory:log}/zope-event.log
80 z2-log = ${basedirectory:log}/zope-Z2.log
81 configuration-file = ${rootdirectory:etc}/zope.conf
82 inituser = ${:instance-path}/inituser
83 # Binary information
84 runzope-binary = {{ bin_directory }}/runzope
85
86 # Defaults
87 bt5-repository-list =
88
89 [logrotate]
90 recipe = slapos.cookbook:logrotate
91 # Binaries
92 logrotate-binary = {{ logrotate_location }}/usr/sbin/logrotate
93 gzip-binary = {{ gzip_location }}/bin/gzip
94 gunzip-binary = {{ gzip_location }}/bin/gunzip
95 # Directories
96 wrapper = ${rootdirectory:bin}/logrotate
97 conf = ${rootdirectory:etc}/logrotate.conf
98 logrotate-entries = ${directory:logrotate-entries}
99 backup = ${directory:logrotate-backup}
100 state-file = ${rootdirectory:srv}/logrotate.status
101
102 [logrotate-entry-zope]
103 <= logrotate
104 recipe = slapos.cookbook:logrotate.d
105 name = zope
106 log = ${zope-instance:event-log} ${zope-instance:z2-log}
107 frequency = daily
108 rotate-num = 30
109 post = {{ bin_directory }}/killpidfromfile ${zope-instance:pid-file} SIGUSR2
110 sharedscripts = true
111 notifempty = true
112 create = true
113
114 [logrotate-entry-apache-zope-backend]
115 <= logrotate
116 recipe = slapos.cookbook:logrotate.d
117 name = zope
118 log = ${apache-zope-backend-instance:error-log} ${apache-zope-backend-instance:access-log}
119 frequency = daily
120 rotate-num = 30
121 post = {{ bin_directory }}/killpidfromfile ${apache-zope-backend-instance:pid-file} SIGUSR1
122 sharedscripts = true
123 notifempty = true
124 create = true
125
126 [cron]
127 recipe = slapos.cookbook:cron
128 dcrond-binary = {{ dcron_location }}/sbin/crond
129 cron-entries = ${directory:cron-entries}
130 crontabs = ${directory:crontabs}
131 cronstamps = ${directory:cronstamps}
132 catcher = ${cron-simplelogger:wrapper}
133 binary = ${basedirectory:services}/crond
134
135 [cron-simplelogger]
136 recipe = slapos.cookbook:simplelogger
137 wrapper = ${rootdirectory:bin}/cron_simplelogger
138 log = ${basedirectory:log}/cron.log
139
140 [cron-entry-logrotate]
141 <= cron
142 recipe = slapos.cookbook:cron.d
143 name = logrotate
144 frequency = 0 0 * * *
145 command = ${logrotate:wrapper}
146
147 [binary-link]
148 recipe = slapos.cookbook:symbolic.link
149 target-directory = ${rootdirectory:bin}
150 link-binary =
151   {{ coreutils_location }}/bin/basename
152   {{ coreutils_location }}/bin/cat
153   {{ coreutils_location }}/bin/cp
154   {{ coreutils_location }}/bin/ls
155   {{ coreutils_location }}/bin/tr
156   {{ coreutils_location }}/bin/uname
157   {{ git_location }}/bin/git
158   {{ graphviz_location }}/bin/dot
159   {{ grep_location }}/bin/grep
160   {{ imagemagick_location }}/bin/convert
161   {{ imagemagick_location }}/bin/identify
162   {{ librsvg_location }}/bin/rsvg-convert
163   {{ mariadb_location }}/bin/mysql
164   {{ mariadb_location }}/bin/mysqldump
165   {{ pdftk_location }}/bin/pdftk
166   {{ sed_location }}/bin/sed
167   {{ tesseract_location }}/bin/tesseract
168   {{ w3m_location }}/bin/w3m
169   {{ poppler_location }}/bin/pdfinfo
170   {{ poppler_location }}/bin/pdfseparate
171   {{ poppler_location }}/bin/pdftotext
172   {{ poppler_location }}/bin/pdftohtml
173   {{ poppler_location }}/bin/pdfunite
174   {{ dmtx_utils_location }}/bin/dmtxwrite
175   {{ aspell_location }}/bin/aspell
176 [certificate-authority]
177 recipe = slapos.cookbook:certificate_authority
178 openssl-binary = {{ openssl_location }}/bin/openssl
179 ca-dir = ${directory:ca-dir}
180 requests-directory = ${cadirectory:requests}
181 wrapper = ${basedirectory:services}/ca
182 ca-private = ${cadirectory:private}
183 ca-certs = ${cadirectory:certs}
184 ca-newcerts = ${cadirectory:newcerts}
185 ca-crl = ${cadirectory:crl}
186
187 [bt5-erp5-link]
188 recipe = slapos.cookbook:symbolic.link
189 target-directory = ${basedirectory:bt5-erp5}
190 link-binary =
191   {{ erp5_location }}/product/ERP5/bootstrap
192   {{ erp5_location }}/bt5
193
194 [cadirectory]
195 recipe = slapos.cookbook:mkdirectory
196 requests = ${directory:ca-dir}/requests
197 private = ${directory:ca-dir}/private
198 certs = ${directory:ca-dir}/certs
199 newcerts = ${directory:ca-dir}/newcerts
200 crl = ${directory:ca-dir}/crl
201
202 [rootdirectory]
203 recipe = slapos.cookbook:mkdirectory
204 etc = ${buildout:directory}/etc
205 var = ${buildout:directory}/var
206 srv = ${buildout:directory}/srv
207 bin = ${buildout:directory}/bin
208 tmp = ${buildout:directory}/tmp
209
210 [basedirectory]
211 recipe = slapos.cookbook:mkdirectory
212 log = ${rootdirectory:var}/log
213 services = ${rootdirectory:etc}/run
214 run = ${rootdirectory:var}/run
215 backup = ${rootdirectory:srv}/backup
216 bt5-erp5 = ${rootdirectory:var}/bt5_erp5
217
218 [erp5-certificate-authority]
219 recipe = slapos.cookbook:certificate_authority
220 openssl-binary = {{ openssl_location }}/bin/openssl
221 ca-dir = ${directory:erp5-ca-dir}
222 requests-directory = ${erp5-cadirectory:requests}
223 wrapper = ${basedirectory:services}/erp5-ca
224 ca-private = ${erp5-cadirectory:private}
225 ca-certs = ${erp5-cadirectory:certs}
226 ca-newcerts = ${erp5-cadirectory:newcerts}
227 ca-crl = ${erp5-cadirectory:crl}
228
229 [erp5-cadirectory]
230 recipe = slapos.cookbook:mkdirectory
231 requests = ${directory:erp5-ca-dir}/requests
232 private = ${directory:erp5-ca-dir}/private
233 certs = ${directory:erp5-ca-dir}/certs
234 newcerts = ${directory:erp5-ca-dir}/newcerts
235 crl = ${directory:erp5-ca-dir}/crl
236
237 [directory]
238 recipe = slapos.cookbook:mkdirectory
239 zodb = ${rootdirectory:srv}/zodb
240 instance = ${rootdirectory:srv}/erp5shared
241 instance-etc = ${:instance}/etc
242 apache-conf = ${rootdirectory:etc}/apache
243 instance-etc-package-include = ${:instance}/etc/package-include
244 # because of bug in slapos.recipe.template keys are lowercased
245 instance-document = ${:instance}/Document
246 instance-propertysheet = ${:instance}/PropertySheet
247 instance-products = ${:instance}/Products
248 instance-extensions = ${:instance}/Extensions
249 instance-constraint = ${:instance}/Constraint
250 instance-import = ${:instance}/import
251 instance-lib = ${:instance}/lib
252 instance-tests = ${:instance}/tests
253 erp5-ca-dir = ${rootdirectory:srv}/erp5-ca
254 ca-dir = ${rootdirectory:srv}/ssl
255 cron-entries = ${rootdirectory:etc}/cron.d
256 crontabs = ${rootdirectory:etc}/crontabs
257 cronstamps = ${rootdirectory:etc}/cronstamps
258 logrotate-backup = ${basedirectory:backup}/logrotate
259 logrotate-entries = ${rootdirectory:etc}/logrotate.d