Fix the issue that generate.cloudooo recipe does not work
[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
46 [logrotate-entry-kumofs]
47 <= logrotate
48 recipe = slapos.cookbook:logrotate.d
49 name = kumofs
50 log = $${kumofs-instance:kumo-gateway-log} $${kumofs-instance:kumo-manager-log}
51   $${kumofs-instance:kumo-server-log}
52
53 # rest of parts are candidates for some generic stuff
54
55 [logrotate]
56 recipe = slapos.cookbook:logrotate
57 # Binaries
58 logrotate-binary = ${logrotate:location}/usr/sbin/logrotate
59 gzip-binary = ${gzip:location}/bin/gzip
60 gunzip-binary = ${gzip:location}/bin/gunzip
61 # Directories
62 wrapper = $${rootdirectory:bin}/logrotate
63 conf = $${rootdirectory:etc}/logrotate.conf
64 logrotate-entries = $${directory:logrotate-entries}
65 backup = $${directory:logrotate-backup}
66 state-file = $${rootdirectory:srv}/logrotate.status
67
68 [basedirectory]
69 recipe = slapos.cookbook:mkdirectory
70 log = $${rootdirectory:var}/log
71 services = $${rootdirectory:etc}/run
72 run = $${rootdirectory:var}/run
73 backup = $${rootdirectory:srv}/backup
74
75 [directory]
76 recipe = slapos.cookbook:mkdirectory
77 cron-entries = $${rootdirectory:etc}/cron.d
78 crontabs = $${rootdirectory:etc}/crontabs
79 cronstamps = $${rootdirectory:etc}/cronstamps
80 cronoutput = $${basedirectory:log}/cron
81 logrotate-backup = $${basedirectory:backup}/logrotate
82 logrotate-entries = $${rootdirectory:etc}/logrotate.d
83 kumofs-data = $${rootdirectory:srv}/kumofs
84
85 [rootdirectory]
86 recipe = slapos.cookbook:mkdirectory
87 etc = $${buildout:directory}/etc
88 var = $${buildout:directory}/var
89 srv = $${buildout:directory}/srv
90 bin = $${buildout:directory}/bin
91
92 [cron]
93 recipe = slapos.cookbook:cron
94 dcrond-binary = ${dcron:location}/sbin/crond
95 cron-entries = $${directory:cron-entries}
96 crontabs = $${directory:crontabs}
97 cronstamps = $${directory:cronstamps}
98 catcher = $${cron-simplelogger:binary}
99 binary = $${basedirectory:services}/crond
100
101 [cron-simplelogger]
102 recipe = slapos.cookbook:simplelogger
103 binary = $${rootdirectory:bin}/cron_simplelogger
104 output = $${directory:cronoutput}
105
106 [cron-entry-logrotate]
107 <= cron
108 recipe = slapos.cookbook:cron.d
109 name = logrotate
110 frequency = 0 0 * * *
111 command = $${logrotate:wrapper}