update cloudooo to support better utf-8 handling and OpenOffice.org 3.4.
[slapos.git] / stack / erp5 / instance-memcached.cfg.in
1 # memcached-compatible volatile cache using kumofs
2 # that has no limitation for key length and data size
3
4 [buildout]
5 parts =
6   publish-kumofs-connection-information
7   kumofs-instance
8   logrotate
9   logrotate-entry-kumofs
10   cron
11   cron-entry-logrotate
12   promise-kumofs-server
13   promise-kumofs-server-listen
14   promise-kumofs-gateway
15   promise-kumofs-manager
16
17 eggs-directory = {{ eggs_directory }}
18 develop-eggs-directory = {{ develop_eggs_directory }}
19 offline = true
20
21 [publish-kumofs-connection-information]
22 recipe = slapos.cookbook:publishurl
23 url = memcached://${kumofs-instance:ip}:${kumofs-instance:gateway-port}/
24
25 [kumofs-instance]
26 recipe = slapos.cookbook:generic.kumofs
27
28 # Network options
29 ip = ${slap-network-information:local-ipv4}
30 manager-port = 13401
31 server-port = 13501
32 server-listen-port = 13502
33 # previous memcached configuration
34 gateway-port = 11000
35 # previous memcached configuration
36 storage-size = 64m
37
38 # Paths: Running wrappers
39 gateway-wrapper = ${basedirectory:services}/volatile_kumofs_gateway
40 manager-wrapper = ${basedirectory:services}/volatile_kumofs_manager
41 server-wrapper = ${basedirectory:services}/volatile_kumofs_server
42
43 # Paths: Data
44 data-path = *#capsiz=${:storage-size}
45
46 # Paths: Logs
47 kumo-gateway-log = ${basedirectory:log}/kumo-gateway.log
48 kumo-manager-log = ${basedirectory:log}/kumo-manager.log
49 kumo-server-log = ${basedirectory:log}/kumo-server.log
50
51 # Binary information
52 kumo-gateway-binary = {{ kumo_location }}/bin/kumo-gateway
53 kumo-manager-binary = {{ kumo_location }}/bin/kumo-manager
54 kumo-server-binary = {{ kumo_location }}/bin/kumo-server
55 shell-path = {{ dash_location }}/bin/dash
56
57 [logrotate-entry-kumofs]
58 <= logrotate
59 recipe = slapos.cookbook:logrotate.d
60 name = kumofs
61 log = ${kumofs-instance:kumo-gateway-log} ${kumofs-instance:kumo-manager-log}
62   ${kumofs-instance:kumo-server-log}
63
64 # rest of parts are candidates for some generic stuff
65
66 [logrotate]
67 recipe = slapos.cookbook:logrotate
68 # Binaries
69 logrotate-binary = {{ logrotate_location }}/usr/sbin/logrotate
70 gzip-binary = {{ gzip_location }}/bin/gzip
71 gunzip-binary = {{ gzip_location }}/bin/gunzip
72 # Directories
73 wrapper = ${rootdirectory:bin}/logrotate
74 conf = ${rootdirectory:etc}/logrotate.conf
75 logrotate-entries = ${directory:logrotate-entries}
76 backup = ${directory:logrotate-backup}
77 state-file = ${rootdirectory:srv}/logrotate.status
78
79 [basedirectory]
80 recipe = slapos.cookbook:mkdirectory
81 log = ${rootdirectory:var}/log
82 services = ${rootdirectory:etc}/run
83 promise = ${rootdirectory:etc}/promise
84 run = ${rootdirectory:var}/run
85 backup = ${rootdirectory:srv}/backup
86
87 [directory]
88 recipe = slapos.cookbook:mkdirectory
89 cron-entries = ${rootdirectory:etc}/cron.d
90 crontabs = ${rootdirectory:etc}/crontabs
91 cronstamps = ${rootdirectory:etc}/cronstamps
92 logrotate-backup = ${basedirectory:backup}/logrotate
93 logrotate-entries = ${rootdirectory:etc}/logrotate.d
94
95 [rootdirectory]
96 recipe = slapos.cookbook:mkdirectory
97 etc = ${buildout:directory}/etc
98 var = ${buildout:directory}/var
99 srv = ${buildout:directory}/srv
100 bin = ${buildout:directory}/bin
101
102 [cron]
103 recipe = slapos.cookbook:cron
104 dcrond-binary = {{ dcron_location }}/sbin/crond
105 cron-entries = ${directory:cron-entries}
106 crontabs = ${directory:crontabs}
107 cronstamps = ${directory:cronstamps}
108 catcher = ${cron-simplelogger:wrapper}
109 binary = ${basedirectory:services}/crond
110
111 [cron-simplelogger]
112 recipe = slapos.cookbook:simplelogger
113 wrapper = ${rootdirectory:bin}/cron_simplelogger
114 log = ${basedirectory:log}/cron.log
115
116 [cron-entry-logrotate]
117 <= cron
118 recipe = slapos.cookbook:cron.d
119 name = logrotate
120 frequency = 0 0 * * *
121 command = ${logrotate:wrapper}
122
123 # Deploy zope promises scripts
124 [promise-template]
125 recipe = slapos.cookbook:check_port_listening
126 hostname = ${kumofs-instance:ip}
127 port = ${kumofs-instance:server-listen-port}
128
129 [promise-kumofs-server]
130 <= promise-template
131 path = ${basedirectory:promise}/kumofs-server
132 port = ${kumofs-instance:server-port}
133
134 [promise-kumofs-server-listen]
135 <= promise-template
136 path = ${basedirectory:promise}/kumofs-server-listen
137 port = ${kumofs-instance:server-listen-port}
138
139 [promise-kumofs-gateway]
140 <= promise-template
141 path = ${basedirectory:promise}/kumofs-gateway
142 port = ${kumofs-instance:gateway-port}
143
144 [promise-kumofs-manager]
145 <= promise-template
146 path = ${basedirectory:promise}/kumofs-manager
147 port = ${kumofs-instance:manager-port}