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