Add scalability test support
[slapos.git] / software / erp5testnode / instance-default.cfg
1 [buildout]
2
3 eggs-directory = ${buildout:eggs-directory}
4 develop-eggs-directory = ${buildout:develop-eggs-directory}
5 offline = true
6
7 parts =
8   connection-dict
9   testnode
10   shell
11   shellinabox
12   certificate-authority
13   ca-shellinabox
14   ca-httpd
15
16 [connection-dict]
17 recipe = slapos.cookbook:publish
18 url = http://[$${shellinabox:ipv6}]:$${shellinabox:port}/
19 password = $${pwgen:passwd}
20
21 [pwgen]
22 recipe = slapos.cookbook:generate.password
23 storage-path = $${buildout:directory}/.password
24
25 [testnode]
26 recipe = slapos.cookbook:erp5testnode
27 slapos-directory = $${directory:slapos}
28 working-directory = $${directory:testnode}
29 test-suite-directory = $${directory:test-suite}
30 proxy-host = $${slap-network-information:global-ipv6}
31 proxy-port = 5000
32 log-directory = $${directory:log}
33 srv-directory = $${rootdirectory:srv}
34 software-directory = $${directory:software}
35 run-directory = $${directory:run}
36 test-node-title = $${slap-parameter:test-node-title}
37 node-quantity = $${slap-parameter:node-quantity}
38 ipv4-address = $${slap-network-information:local-ipv4}
39 ipv6-address = $${slap-network-information:global-ipv6}
40 test-suite-master-url = $${slap-parameter:test-suite-master-url}
41 instance-dict = $${slap-parameter:instance-dict}
42 software-path-list = $${slap-parameter:software-path-list}
43 git-binary = ${git:location}/bin/git
44 slapgrid-partition-binary = ${buildout:bin-directory}/slapgrid-cp
45 slapgrid-software-binary = ${buildout:bin-directory}/slapgrid-sr
46 slapproxy-binary = ${buildout:bin-directory}/slapproxy
47 testnode = ${buildout:bin-directory}/testnode
48 zip-binary = ${zip:location}/bin/zip
49 httpd-pid-file = $${basedirectory:run}/httpd.pid
50 httpd-lock-file = $${basedirectory:run}/httpd.lock
51 httpd-conf-file = $${rootdirectory:etc}/httpd.conf
52 httpd-wrapper = $${rootdirectory:bin}/httpd
53 httpd-port = 9080
54 httpd-software-access-port = 9081
55 httpd-ip = $${slap-network-information:global-ipv6}
56 httpd-log-directory = $${basedirectory:log}
57 httpd-software-directory = $${directory:software}
58 httpd-cert-file = $${rootdirectory:etc}/httpd-public.crt
59 httpd-key-file = $${rootdirectory:etc}/httpd-private.key
60
61 configuration-file = $${rootdirectory:etc}/erp5testnode.cfg
62 log-file = $${basedirectory:log}/erp5testnode.log
63 wrapper = $${basedirectory:services}/erp5testnode
64
65 # Binaries
66 apache-binary = ${apache:location}/bin/httpd
67 apache-modules-dir = ${apache:location}/modules
68 apache-mime-file = ${apache:location}/conf/mime.types
69 apache-htpasswd = ${apache:location}/bin/htpasswd
70
71 [shell]
72 recipe = slapos.cookbook:shell
73 wrapper = $${rootdirectory:bin}/sh
74 shell = ${busybox:location}/bin/sh
75 home = $${buildout:directory}
76 ps1 = "\\w> "
77 path =
78     ${busybox:location}/bin/
79     ${busybox:location}/usr/bin/
80     ${git:location}/bin/
81     ${python2.7:location}/bin/
82     ${buildout:bin-directory}/
83     ${busybox:location}/sbin/
84     ${busybox:location}/usr/sbin/
85
86 [shellinabox]
87 recipe = slapos.cookbook:shellinabox
88 ipv6 = $${slap-network-information:global-ipv6}
89 port = 8080
90 shell = $${shell:wrapper}
91 wrapper = $${rootdirectory:bin}/shellinaboxd
92 shellinabox-binary = ${shellinabox:location}/bin/shellinaboxd
93 password = $${pwgen:passwd}
94 directory = $${buildout:directory}/
95 login-shell = $${rootdirectory:bin}/login
96 certificate-directory = $${directory:shellinabox}
97 cert-file = $${directory:shellinabox}/public.crt
98 key-file = $${directory:shellinabox}/private.key
99
100 [certificate-authority]
101 recipe = slapos.cookbook:certificate_authority
102 openssl-binary = ${openssl:location}/bin/openssl
103 ca-dir = $${directory:ca-dir}
104 requests-directory = $${cadirectory:requests}
105 wrapper = $${basedirectory:services}/ca
106 ca-private = $${cadirectory:private}
107 ca-certs = $${cadirectory:certs}
108 ca-newcerts = $${cadirectory:newcerts}
109 ca-crl = $${cadirectory:crl}
110
111 [cadirectory]
112 recipe = slapos.cookbook:mkdirectory
113 requests = $${directory:ca-dir}/requests/
114 private = $${directory:ca-dir}/private/
115 certs = $${directory:ca-dir}/certs/
116 newcerts = $${directory:ca-dir}/newcerts/
117 crl = $${directory:ca-dir}/crl/
118
119 [ca-shellinabox]
120 <= certificate-authority
121 recipe = slapos.cookbook:certificate_authority.request
122 executable = $${shellinabox:wrapper}
123 wrapper = $${basedirectory:services}/shellinaboxd
124 key-file = $${shellinabox:key-file}
125 cert-file = $${shellinabox:cert-file}
126
127 [ca-httpd]
128 <= certificate-authority
129 recipe = slapos.cookbook:certificate_authority.request
130 executable = $${testnode:httpd-wrapper}
131 wrapper = $${basedirectory:services}/httpd
132 key-file = $${testnode:httpd-key-file}
133 cert-file = $${testnode:httpd-cert-file}
134
135 [rootdirectory]
136 recipe = slapos.cookbook:mkdirectory
137 etc = $${buildout:directory}/etc
138 var = $${buildout:directory}/var
139 srv = $${buildout:directory}/srv
140 bin = $${buildout:directory}/bin
141 tmp = $${buildout:directory}/tmp
142
143 [basedirectory]
144 recipe = slapos.cookbook:mkdirectory
145 log = $${rootdirectory:var}/log
146 services = $${rootdirectory:etc}/run
147 run = $${rootdirectory:var}/run
148 promises = $${rootdirectory:etc}/promise
149
150 [directory]
151 recipe = slapos.cookbook:mkdirectory
152 slapos = $${rootdirectory:srv}/slapos
153 testnode = $${rootdirectory:srv}/testnode
154 test-suite = $${rootdirectory:srv}/test_suite
155 log = $${basedirectory:log}/testnode
156 run = $${basedirectory:run}/testnode
157 software = $${rootdirectory:srv}/software
158 shellinabox = $${rootdirectory:srv}/shellinabox
159 ca-dir = $${rootdirectory:srv}/ca
160
161 [slap-parameter]
162 node-quantity = 1
163 test-suite-master-url =
164 instance-dict =
165 software-path-list = ["http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/erp5testnode:/software/seleniumrunner/software.cfg"]