Provide executable shell
[slapos.git] / software / erp5 / instance-kumofs.cfg
1 [buildout]
2 parts =
3   publish-kumofs-connection-information
4   kumofs-instance
5   logrotate
6   logrotate-entry-kumofs
7   cron
8   cron-entry-logrotate
9
10 eggs-directory = ${buildout:eggs-directory}
11 develop-eggs-directory = ${buildout:develop-eggs-directory}
12 offline = true
13
14 [publish-kumofs-connection-information]
15 recipe = slapos.cookbook:publishurl
16 url = memcached://$${kumofs-instance:ip}:$${kumofs-instance:gateway-port}/
17
18 [kumofs-instance]
19 recipe = slapos.cookbook:generic.kumofs
20
21 # Network options
22 ip = $${slap-network-information:local-ipv4}
23 manager-port = 13101
24 server-port = 13201
25 server-listen-port = 13202
26 gateway-port = 13301
27
28 # Paths: Running wrappers
29 gateway-wrapper = $${basedirectory:services}/kumofs_gateway
30 manager-wrapper = $${basedirectory:services}/kumofs_manager
31 server-wrapper = $${basedirectory:services}/kumofs_server
32
33 # Paths: Data
34 data-directory = $${directory:kumofs-data}
35
36 # Paths: Logs
37 kumo-gateway-log = $${basedirectory:log}/kumo-gateway.log
38 kumo-manager-log = $${basedirectory:log}/kumo-manager.log
39 kumo-server-log = $${basedirectory:log}/kumo-server.log
40
41 # Binary information
42 kumo-gateway-binary = ${kumo:location}/bin/kumo-gateway
43 kumo-manager-binary = ${kumo:location}/bin/kumo-manager
44 kumo-server-binary = ${kumo:location}/bin/kumo-server
45 shell-path = ${dash:location}/bin/dash
46
47 [logrotate-entry-kumofs]
48 <= logrotate
49 recipe = slapos.cookbook:logrotate.d
50 name = kumofs
51 log = $${kumofs-instance:kumo-gateway-log} $${kumofs-instance:kumo-manager-log}
52   $${kumofs-instance:kumo-server-log}
53
54 # rest of parts are candidates for some generic stuff
55
56 [logrotate]
57 recipe = slapos.cookbook:logrotate
58 # Binaries
59 logrotate-binary = ${logrotate:location}/usr/sbin/logrotate
60 gzip-binary = ${gzip:location}/bin/gzip
61 gunzip-binary = ${gzip:location}/bin/gunzip
62 # Directories
63 wrapper = $${rootdirectory:bin}/logrotate
64 conf = $${rootdirectory:etc}/logrotate.conf
65 logrotate-entries = $${directory:logrotate-entries}
66 backup = $${directory:logrotate-backup}
67 state-file = $${rootdirectory:srv}/logrotate.status
68
69 [basedirectory]
70 recipe = slapos.cookbook:mkdirectory
71 log = $${rootdirectory:var}/log
72 services = $${rootdirectory:etc}/run
73 run = $${rootdirectory:var}/run
74 backup = $${rootdirectory:srv}/backup
75
76 [directory]
77 recipe = slapos.cookbook:mkdirectory
78 cron-entries = $${rootdirectory:etc}/cron.d
79 crontabs = $${rootdirectory:etc}/crontabs
80 cronstamps = $${rootdirectory:etc}/cronstamps
81 cronoutput = $${basedirectory:log}/cron
82 logrotate-backup = $${basedirectory:backup}/logrotate
83 logrotate-entries = $${rootdirectory:etc}/logrotate.d
84 kumofs-data = $${rootdirectory:srv}/kumofs
85
86 [rootdirectory]
87 recipe = slapos.cookbook:mkdirectory
88 etc = $${buildout:directory}/etc
89 var = $${buildout:directory}/var
90 srv = $${buildout:directory}/srv
91 bin = $${buildout:directory}/bin
92
93 [cron]
94 recipe = slapos.cookbook:cron
95 dcrond-binary = ${dcron:location}/sbin/crond
96 cron-entries = $${directory:cron-entries}
97 crontabs = $${directory:crontabs}
98 cronstamps = $${directory:cronstamps}
99 catcher = $${cron-simplelogger:binary}
100 binary = $${basedirectory:services}/crond
101
102 [cron-simplelogger]
103 recipe = slapos.cookbook:simplelogger
104 binary = $${rootdirectory:bin}/cron_simplelogger
105 output = $${directory:cronoutput}
106
107 [cron-entry-logrotate]
108 <= cron
109 recipe = slapos.cookbook:cron.d
110 name = logrotate
111 frequency = 0 0 * * *
112 command = $${logrotate:wrapper}