Provide executable shell
[slapos.git] / software / erp5 / instance-erp5-production.cfg
1 #############################
2 #
3 # Request erp5 production environnment
4 #
5 #############################
6 [buildout]
7
8 parts =
9   request-mariadb
10   request-sphinx
11   request-cloudooo
12   request-memcached
13   request-kumofs
14   request-tidstorage
15   basedirectory
16
17 eggs-directory = ${buildout:eggs-directory}
18 develop-eggs-directory = ${buildout:develop-eggs-directory}
19 offline = true
20
21 [request-common]
22 recipe = slapos.cookbook:request
23 software-url = $${slap-connection:software-release-url}
24 sla = computer_guid
25 return = url
26 server-url = $${slap-connection:server-url}
27 key-file = $${slap-connection:key-file}
28 cert-file = $${slap-connection:cert-file}
29 computer-id = $${slap-connection:computer-id}
30 partition-id = $${slap-connection:partition-id}
31
32 [request-sphinx]
33 <=request-common
34 name = Sphinx Search Engine
35 software-type = sphinx
36 sla-computer_guid = $${slap-parameter:sphinx-computer-guid}
37
38 [request-mariadb]
39 <=request-common
40 name = MariaDB DataBase
41 software-type = mariadb
42 sla-computer_guid = $${slap-parameter:mariadb-computer-guid}
43
44 [request-cloudooo]
45 <=request-common
46 name = Cloudooo
47 config = cloudooo-json
48 config-cloudooo-json = $${slap-parameter:cloudooo-json}
49 software-type = cloudooo
50 sla-computer_guid = $${slap-parameter:cloudooo-computer-guid}
51
52 [request-memcached]
53 <=request-common
54 name = Memcached
55 software-type = memcached
56 sla-computer_guid = $${slap-parameter:memcached-computer-guid}
57
58 [request-kumofs]
59 <=request-common
60 name = KumoFS
61 software-type = kumofs
62 sla-computer_guid = $${slap-parameter:kumofs-computer-guid}
63
64 [request-tidstorage]
65 <=request-common
66 name = TidStorage
67 return = url-login
68 config = json mysql-url memcached-url cloudooo-url kumofs-url
69 config-json = $${slap-parameter:json}
70 config-mysql-url = $${request-mariadb:connection-url}
71 config-memcached-url = $${request-memcached:connection-url}
72 config-cloudooo-url = $${request-cloudooo:connection-url}
73 config-kumofs-url = $${request-kumofs:connection-url}
74 software-type = tidstorage
75 sla-computer_guid = $${slap-parameter:tidstorage-computer-guid}
76
77 [slap-parameter]
78 # Default value if no computer_guid is specified for each type
79 sphinx-computer-guid = $${slap-connection:computer-id}
80 mariadb-computer-guid = $${slap-connection:computer-id}
81 cloudooo-computer-guid = $${slap-connection:computer-id}
82 memcached-computer-guid = $${slap-connection:computer-id}
83 kumofs-computer-guid = $${slap-connection:computer-id}
84 tidstorage-computer-guid = $${slap-connection:computer-id}
85
86 # rest of parts are candidates for some generic stuff
87 [basedirectory]
88 recipe = slapos.cookbook:mkdirectory
89 services = $${rootdirectory:etc}/run
90
91 [rootdirectory]
92 recipe = slapos.cookbook:mkdirectory
93 etc = $${buildout:directory}/etc