Slaprunner SR: resilience test: decrease periodicity of backup to speed up test.
[slapos.git] / software / slaprunner / common.cfg
1 [buildout]
2 extends =
3   ../../component/bash/buildout.cfg
4   ../../component/cloud9/buildout.cfg
5   ../../component/curl/buildout.cfg
6   ../../component/dash/buildout.cfg
7   ../../component/dropbear/buildout.cfg
8   ../../component/git/buildout.cfg
9   ../../component/lxml-python/buildout.cfg
10   ../../component/nginx/buildout.cfg
11   ../../component/rsync/buildout.cfg
12   ../../stack/flask.cfg
13   ../../stack/shacache-client.cfg
14   ../../stack/resilient/buildout.cfg
15   ../../stack/slapos.cfg
16
17 parts =
18   rdiff-backup
19   template
20   eggs
21   nginx
22   simple-proxy
23   node-frontend-template
24   http-proxy
25   npm-modules
26   instance-runner-import
27   instance-runner-export
28   slapos-cookbook
29
30 ####################
31 ## Node JS proxy
32 ####################
33 [simple-proxy]
34 recipe = slapos.recipe.download
35 url = ${:_profile_base_location_}/simple-proxy.js
36 location = ${buildout:parts-directory}/${:_buildout_section_name_}
37 md5sum = 86e2231b3f65587b56d9be63e21a4e05
38 filename = simple-proxy.js
39 mode = 0644
40
41 [node-frontend-template]
42 recipe = slapos.recipe.download
43 url = ${:_profile_base_location_}/node-frontend.in
44 location = ${buildout:parts-directory}/${:_buildout_section_name_}
45 filename = node-frontend.in
46 md5sum = 72904152860dddb30ca936dac5bbf4cd
47 mode = 0644
48
49 [http-proxy]
50 # https://github.com/nodejitsu/node-http-proxy
51 recipe = slapos.recipe.build:download-unpacked
52 #XXX-Cedric : use upstream when merged
53 url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip
54 md5sum = 621e5fca448cbea137c5d847d780d84d
55
56 [npm-modules]
57 recipe = plone.recipe.command
58 destination = ${buildout:parts-directory}/${:_buildout_section_name_}
59 location = ${buildout:parts-directory}/${:_buildout_section_name_}
60 command =
61   export HOME=${:location};
62   rm -fr ${:destination} &&
63   mkdir -p ${:destination} &&
64   cd ${:destination} &&
65   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
66   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
67   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
68   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
69   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3
70
71
72 [template]
73 recipe = slapos.recipe.template
74 url = ${:_profile_base_location_}/instance.cfg
75 output = ${buildout:directory}/template.cfg
76 md5sum = 92a2f3bcd5ff79e3b61ca4a8bacb73ec
77 mode = 0644
78
79 [template-runner]
80 recipe = slapos.recipe.template
81 url = ${:_profile_base_location_}/instance-runner.cfg
82 output = ${buildout:directory}/template-runner.cfg
83 md5sum = bcd1ee4dd126d2c6e9461f7753fc83b7
84 mode = 0644
85
86 [instance-runner-import]
87 recipe = slapos.recipe.template
88 url = ${:_profile_base_location_}/instance-runner-import.cfg.in
89 output = ${buildout:directory}/instance-runner-import.cfg
90 md5sum = f16cb60bb16632e652bea69cd5cdd9b7
91 mode = 0644
92
93 [instance-runner-export]
94 recipe = slapos.recipe.template
95 url = ${:_profile_base_location_}/instance-runner-export.cfg.in
96 output = ${buildout:directory}/instance-runner-export.cfg
97 md5sum = 7e71622c09271790b5cef21c8613b8ac
98 mode = 0644
99
100 [template-resilient]
101 recipe = slapos.recipe.download
102 url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
103 md5sum = 2562a6ac6893cc71a7328d7064aff599
104 filename = instance-resilient.cfg.jinja2
105 mode = 0644
106
107 [template-resilient-test]
108 recipe = slapos.recipe.download
109 url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
110 md5sum = ac772d3a1cce4072acfabd563df449bb
111 filename = instance-resilient-test.cfg.jinja2
112 mode = 0644
113
114 [template_nginx_conf]
115 recipe = slapos.recipe.download
116 url = ${:_profile_base_location_}/nginx_conf.in
117 md5sum = 09b7677dfc6b23c1f58e67fd06a7625e
118 filename = nginx_conf.in
119 mode = 0644
120
121 [template_launcher]
122 recipe = slapos.recipe.download
123 url = ${:_profile_base_location_}/launcher.in
124 md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
125 filename = launcher.in
126 mode = 0644
127 location = ${buildout:parts-directory}/${:_buildout_section_name_}
128
129 [eggs]
130 recipe = z3c.recipe.scripts
131 eggs =
132   ${lxml-python:egg}
133   cns.recipe.symlink
134   erp5.util
135   hexagonit.recipe.download
136   inotifyx
137   lock-file
138   netaddr
139   slapos.cookbook
140   slapos.libnetworkcache
141   slapos.toolbox[flask_auth]
142   slapos.core
143   xml_marshaller
144   pytz
145
146 # Add slapos.libnetworkcache to path of slapos.core so that slaprunner can build SRs using cache
147 [slapos-cookbook]
148 eggs =
149   ${lxml-python:egg}
150   slapos.cookbook
151   cliff
152   hexagonit.recipe.download
153   inotifyx
154   netaddr
155   netifaces
156   requests
157   slapos.core
158   supervisor
159   xml_marshaller
160   pytz
161   slapos.libnetworkcache
162