Provide tidstorage connection information
[slapos.git] / software / erp5 / instance-erp5-development.cfg
1 #############################
2 #
3 # Request erp5 development environnment
4 #
5 #############################
6 [buildout]
7
8 extends = ${template-zope:output}
9 parts +=
10   request-mariadb
11   request-cloudooo
12   request-memcached
13   request-kumofs
14   basedirectory
15   erp5-update
16   test-runner
17
18 eggs-directory = ${buildout:eggs-directory}
19 develop-eggs-directory = ${buildout:develop-eggs-directory}
20 offline = true
21
22 [slap-parameter]
23 # default site id
24 site-id = erp5
25 cloudooo-json =
26
27 [test-runner]
28 recipe = slapos.cookbook:erp5.test
29 certificate-authority-path = $${test-certificate-authority:ca-dir}
30 mysql-url = $${request-mariadb:connection-url}
31 kumofs-url = $${request-kumofs:connection-url}
32 memcached-url = $${request-memcached:connection-url}
33 cloudooo-url = $${request-cloudooo:connection-url}
34 test-instance-path = $${directory:unit-test-path}
35
36 prepend-path = $${buildout:bin-directory}
37 run-unit-test = $${buildout:bin-directory}/runUnitTest
38 run-test-suite = $${buildout:bin-directory}/runTestSuite
39
40 openssl-binary = $${test-certificate-authority:openssl-binary}
41 run-unit-test-binary = ${buildout:bin-directory}/runUnitTest
42 run-test-suite-binary = ${buildout:bin-directory}/runTestSuite
43
44 [test-certificate-authority]
45 recipe = slapos.cookbook:certificate_authority
46 openssl-binary = ${openssl:location}/bin/openssl
47 ca-dir = $${directory:test-ca-dir}
48 requests-directory = $${test-cadirectory:requests}
49 wrapper = $${basedirectory:services}/test-ca
50 ca-private = $${test-cadirectory:private}
51 ca-certs = $${test-cadirectory:certs}
52 ca-newcerts = $${test-cadirectory:newcerts}
53 ca-crl = $${test-cadirectory:crl}
54
55 [test-cadirectory]
56 recipe = slapos.cookbook:mkdirectory
57 requests = $${directory:test-ca-dir}/requests
58 private = $${directory:test-ca-dir}/private
59 certs = $${directory:test-ca-dir}/certs
60 newcerts = $${directory:test-ca-dir}/newcerts
61 crl = $${directory:test-ca-dir}/crl
62
63 [erp5-update]
64 recipe = slapos.cookbook:erp5.update
65
66 # Configuration
67 url = http://$${zope-instance:user}:$${zope-instance:password}@$${zope-instance:ip}:$${zope-instance:port}/
68 mysql-url = $${request-mariadb:connection-url}
69 kumofs-url = $${request-kumofs:connection-url}
70 memcached-url = $${request-memcached:connection-url}
71 cloudooo-url = $${request-cloudooo:connection-url}
72 site-id = $${slap-parameter:site-id}
73 openssl-binary = ${openssl:location}/bin/openssl
74 cadir-path = $${erp5-certificate-authority:ca-dir}
75
76 # Paths
77 update-wrapper = $${basedirectory:services}/erp5-update
78
79 # Defaults
80 configurator-bt5-list = erp5_full_text_myisam_catalog erp5_configurator_standard erp5_configurator_maxma_demo erp5_configurator_ung erp5_configurator_ung erp5_configurator_run_my_doc
81 bt5-repository-list = $${zope-instance:bt5-repository-list}
82
83 [request-common]
84 recipe = slapos.cookbook:request
85 software-url = $${slap-connection:software-release-url}
86 sla = computer_guid
87 sla-computer_guid = $${slap-connection:computer-id}
88 return = url
89 server-url = $${slap-connection:server-url}
90 key-file = $${slap-connection:key-file}
91 cert-file = $${slap-connection:cert-file}
92 computer-id = $${slap-connection:computer-id}
93 partition-id = $${slap-connection:partition-id}
94
95 [request-mariadb]
96 <=request-common
97 name = MariaDB DataBase
98 software-type = mariadb
99
100 [request-cloudooo]
101 <=request-common
102 name = Cloudooo
103 config = cloudooo-json
104 config-cloudooo-json = $${slap-parameter:cloudooo-json}
105 software-type = cloudooo
106
107 [request-memcached]
108 <=request-common
109 name = Memcached
110 software-type = memcached
111
112 [request-kumofs]
113 <=request-common
114 name = KumoFS
115 software-type = kumofs
116
117 # rest of parts are candidates for some generic stuff
118 [basedirectory]
119 recipe = slapos.cookbook:mkdirectory
120 services = $${rootdirectory:etc}/run
121
122 [rootdirectory]
123 recipe = slapos.cookbook:mkdirectory
124 etc = $${buildout:directory}/etc
125
126 [directory]
127 test-ca-dir = $${rootdirectory:srv}/test-ca/
128 test-instance-path = $${rootdirectory:srv}/test-instance/
129 unit-test-path = $${:test-instance-path}/unit_test/