lamp/lapp stack: added missing jinja extension 'do'
[slapos.git] / software / davstorage / instance-davstorage.cfg
1 [buildout]
2 parts =
3   davstorage
4   publish-connection-informations
5   certificate-authority
6   ca-davstorage
7   cron
8   cron-entry-logrotate
9   logrotate
10   logrotate-entry-davstorage
11   request-frontend
12
13 eggs-directory = ${buildout:eggs-directory}
14 develop-eggs-directory = ${buildout:develop-eggs-directory}
15 offline = true
16
17 [publish-connection-informations]
18 recipe = slapos.cookbook:publish
19 webdav_access = https://$${request-frontend:connection-domain}
20 url = https://$${request-frontend-ajaxupload:connection-domain}
21 webdav_user = $${davstorage:user}
22 webdav_password = $${davstorage:password}
23
24 [davstorage]
25 recipe = slapos.cookbook:davstorage
26 user = user
27 password = insecure
28 port_webdav = 8080
29 port_ajax = 8070
30 ip = $${slap-network-information:global-ipv6}
31
32 # Path
33 wrapper = $${rootdirectory:bin}/davstorage
34 error-log = $${directory:davstorage-log}/error.log
35 access-log = $${directory:davstorage-log}/access.log
36 pid-file = $${basedirectory:run}/davstorage.pid
37 lock-file = $${basedirectory:run}/davstorage.lock
38 davdb-lock = $${basedirectory:run}/davdb.lock
39 key-file = $${ca-davstorage:key-file}
40 cert-file = $${ca-davstorage:cert-file}
41 conf-file = $${directory:davstorage-conf}/davstorage.conf
42 htdocs = $${directory:htdocs}
43 root = $${buildout:directory}
44 email-address = admin+davstorage@vifib.net
45 htpasswd-file = $${directory:davstorage-conf}/davstorage.htpasswd
46 promise = $${basedirectory:promises}/davstorage
47 php-ini-dir = $${directory:php-ini-dir}
48 tmp-dir = $${directory:tmp-php}
49
50 # Binaries
51 apache-binary = ${apache:location}/bin/httpd
52 apache-modules-dir = ${apache:location}/modules/
53 apache-mime-file = ${apache:location}/conf/mime.types
54 apache-htpasswd = ${apache:location}/bin/htpasswd
55 source = ${application:location}
56
57 [certificate-authority]
58 recipe = slapos.cookbook:certificate_authority
59 openssl-binary = ${openssl:location}/bin/openssl
60 ca-dir = $${directory:ca-dir}
61 requests-directory = $${cadirectory:requests}
62 wrapper = $${basedirectory:services}/certificate_authority
63 ca-private = $${cadirectory:private}
64 ca-certs = $${cadirectory:certs}
65 ca-newcerts = $${cadirectory:newcerts}
66 ca-crl = $${cadirectory:crl}
67
68 [cron]
69 recipe = slapos.cookbook:cron
70 dcrond-binary = ${dcron:location}/sbin/crond
71 cron-entries = $${directory:cron-entries}
72 crontabs = $${directory:crontabs}
73 cronstamps = $${directory:cronstamps}
74 catcher = $${cron-simplelogger:wrapper}
75 binary = $${basedirectory:services}/crond
76
77 [logrotate]
78 recipe = slapos.cookbook:logrotate
79 # Binaries
80 logrotate-binary = ${logrotate:location}/usr/sbin/logrotate
81 gzip-binary = ${gzip:location}/bin/gzip
82 gunzip-binary = ${gzip:location}/bin/gunzip
83 # Directories
84 wrapper = $${rootdirectory:bin}/logrotate
85 conf = $${rootdirectory:etc}/logrotate.conf
86 logrotate-entries = $${directory:logrotate-entries}
87 backup = $${directory:logrotate-backup}
88 state-file = $${rootdirectory:srv}/logrotate.status
89
90 [cron-entry-logrotate]
91 <= cron
92 recipe = slapos.cookbook:cron.d
93 name = logrotate
94 frequency = 0 0 * * *
95 command = $${logrotate:wrapper}
96
97 [cron-simplelogger]
98 recipe = slapos.cookbook:simplelogger
99 wrapper = $${rootdirectory:bin}/cron_simplelogger
100 log = $${basedirectory:log}/crond.log
101
102
103 [logrotate-entry-davstorage]
104 <= logrotate
105 recipe = slapos.cookbook:logrotate.d
106 name = davstorage
107 log = $${davstorage:error-log} $${davstorage:access-log}
108 frequency = daily
109 rotate-num = 30
110 sharedscripts = true
111 notifempty = true
112 create = true
113
114 [cadirectory]
115 recipe = slapos.cookbook:mkdirectory
116 requests = $${directory:ca-dir}/requests/
117 private = $${directory:ca-dir}/private/
118 certs = $${directory:ca-dir}/certs/
119 newcerts = $${directory:ca-dir}/newcerts/
120 crl = $${directory:ca-dir}/crl/
121
122 [ca-davstorage]
123 <= certificate-authority
124 recipe = slapos.cookbook:certificate_authority.request
125 key-file = $${directory:davstorage-conf}/davstorage.key
126 cert-file = $${directory:davstorage-conf}/davstorage.crt
127 executable = $${davstorage:wrapper}
128 wrapper = $${basedirectory:services}/davstorage
129
130 [rootdirectory]
131 recipe = slapos.cookbook:mkdirectory
132 etc = $${buildout:directory}/etc/
133 var = $${buildout:directory}/var/
134 srv = $${buildout:directory}/srv/
135 bin = $${buildout:directory}/bin/
136 tmp = $${buildout:directory}/tmp/
137
138 [basedirectory]
139 recipe = slapos.cookbook:mkdirectory
140 log = $${rootdirectory:var}/log/
141 services = $${rootdirectory:etc}/run/
142 run = $${rootdirectory:var}/run/
143 backup = $${rootdirectory:srv}/backup/
144 promises = $${rootdirectory:etc}/promise/
145
146 [directory]
147 recipe = slapos.cookbook:mkdirectory
148 htdocs = $${rootdirectory:srv}/www/
149 davstorage-log = $${basedirectory:log}/davstorage/
150 logrotate-backup = $${basedirectory:backup}/logrotate/
151 logrotate-entries = $${rootdirectory:etc}/logrotate.d/
152 davstorage-conf = $${rootdirectory:etc}/davstorage/
153 ca-dir = $${rootdirectory:srv}/ssl/
154 cron-entries = $${rootdirectory:etc}/cron.d/
155 crontabs = $${rootdirectory:etc}/crontabs/
156 cronstamps = $${rootdirectory:etc}/cronstamps/
157 cronoutput = $${basedirectory:log}/cron/
158 php-ini-dir = $${rootdirectory:etc}/php
159 tmp-php = $${rootdirectory:tmp}/php
160
161 # Request frontend
162 [request-frontend-ajaxupload]
163 <= slap-connection
164 recipe = slapos.cookbook:request
165 name = Frontend Ajax
166 # XXX We have hardcoded SR URL here.
167 software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
168 slave = true
169 config = url https-only
170 config-https-only = true
171 config-url = https://[$${davstorage:ip}]:$${davstorage:port_ajax}/
172 return = domain
173
174 [request-frontend]
175 <= slap-connection
176 recipe = slapos.cookbook:request
177 name = Frontend Webdav
178 # XXX We have hardcoded SR URL here.
179 software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
180 slave = true
181 config = url https-only
182 config-https-only = true
183 config-url = https://$${davstorage:user}:$${davstorage:password}@[$${davstorage:ip}]:$${davstorage:port_webdav}/
184 return = domain
185
186 # XXX Vivien: promise not working for now
187 #[frontend-ajaxupload-promise]
188 #recipe = slapos.cookbook:check_url_available
189 #path = $${basedirectory:promises}/frontend-ajaxupload
190 #url = $${request-frontend-ajaxupload:connection-site_url}
191 #dash_path = ${dash:location}/bin/dash
192 #curl_path = ${curl:location}/bin/curl