[KVM SR] Update kvm resiliency test to follow resiliency parameter format change.
[slapos.git] / software / kvm / common.cfg
1 [buildout]
2
3 extends =
4   ../../component/6tunnel/buildout.cfg
5   ../../component/curl/buildout.cfg
6   ../../component/dash/buildout.cfg
7   ../../component/dcron/buildout.cfg
8   ../../component/gzip/buildout.cfg
9   ../../component/qemu-kvm/buildout.cfg
10   ../../component/logrotate/buildout.cfg
11   ../../component/noVNC/buildout.cfg
12   ../../component/openssl/buildout.cfg
13   ../../component/dcron/buildout.cfg
14   ../../stack/nodejs.cfg
15   ../../stack/resilient/buildout.cfg
16   ../../stack/slapos.cfg
17
18 parts =
19   template
20   eggs
21
22 # XXX: we have to manually add this for resilience
23   rdiff-backup
24   collective.recipe.template-egg
25
26 #XXX-Cedric : Currently, one can only access to KVM using noVNC.
27 #             Ideally one should be able to access KVM by using either NoVNC or VNC.
28 #             Problem is : no native crypto support in web browsers. So we have to disable ssl
29 #             In qemu builtin vnc server, and make it available only for localhost
30 #             so that only novnc can listen to it.
31
32 #XXX-Cedric: Check status of https://github.com/kanaka/noVNC/issues/13 to see
33 #            When qemu has builtin support for websockets in vnc server to get rid of
34 #            Websockify (socket <-> websocket proxy server) when it is ready.
35 #            May solve previous XXX depending on the implementation.
36
37 #XXX-Cedric : add list of keyboard layouts (azerty/us querty/...) parameter to qemu
38
39 [eggs]
40 recipe = z3c.recipe.scripts
41 eggs =
42   ${lxml-python:egg}
43   websockify
44   slapos.cookbook
45   slapos.toolbox
46   erp5.util
47
48 [http-proxy]
49 # https://github.com/nodejitsu/node-http-proxy
50 recipe = slapos.recipe.build:download-unpacked
51 #XXX-Cedric : use upstream when merged
52 url = https://nodeload.github.com/desaintmartin/node-http-proxy/zipball/20120621
53 md5sum = 20204d0b29c2cef26e1c91e99eedca6b
54
55 [proxy-by-url]
56 # https://github.com/dominictarr/proxy-by-url
57 recipe = slapos.recipe.build:download-unpacked
58 #XXX-Cedric : use upstream when merged
59 url = https://nodeload.github.com/desaintmartin/proxy-by-url/zipball/20120621
60 md5sum = c2609948aa708581f93b981b23880314
61
62 [npm-modules]
63 recipe = plone.recipe.command
64 destination = ${buildout:parts-directory}/${:_buildout_section_name_}
65 location = ${buildout:parts-directory}/${:_buildout_section_name_}
66 command =
67   export HOME=${:location};
68   rm -fr ${:destination} &&
69   mkdir -p ${:destination} &&
70   cd ${:destination} &&
71   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
72   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
73   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
74   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
75   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3
76
77
78 # Create all templates that will be used to deploy instances
79
80 [template]
81 recipe = slapos.recipe.template
82 url = ${:_profile_base_location_}/instance.cfg.in
83 md5sum = bc5a986c7208d02d3284a897ea90b39d
84 output = ${buildout:directory}/template.cfg
85 mode = 0644
86
87 [template-kvm]
88 recipe = hexagonit.recipe.download
89 url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
90 mode = 644
91 md5sum = e16c15f72fdeb92ce1854bc25daf5ad7
92 download-only = true
93 on-update = true
94
95 [template-kvm-resilient]
96 recipe = hexagonit.recipe.download
97 url = ${:_profile_base_location_}/instance-kvm-resilient.cfg.jinja2
98 mode = 644
99 md5sum = a07c96b53fe9145278cd64a3b27a459a
100 download-only = true
101 on-update = true
102
103 [template-kvm-resilient-test]
104 recipe = hexagonit.recipe.download
105 url = ${:_profile_base_location_}/instance-kvm-resilient-test.cfg.jinja2
106 md5sum = b4894680283d3912df4e9740f3e7848b
107 mode = 0644
108 download-only = true
109 on-update = true
110
111 [template-kvm-import]
112 recipe = slapos.recipe.template
113 url = ${:_profile_base_location_}/instance-kvm-import.cfg.in
114 md5sum = 7b36d6c61154b7ec3113a1bfaa25a904
115 output = ${buildout:directory}/template-kvm-import.cfg
116 mode = 0644
117
118 [template-kvm-import-script]
119 recipe = hexagonit.recipe.download
120 url = ${:_profile_base_location_}/template/kvm-import.sh.in
121 filename = kvm-import.sh.in
122 md5sum = e03ed049cddd8d157228b09e1ebc071a
123 download-only = true
124 mode = 0755
125
126 [template-kvm-export]
127 recipe = hexagonit.recipe.download
128 url = ${:_profile_base_location_}/instance-kvm-export.cfg.jinja2
129 mode = 644
130 md5sum = 900f416956903fa4858e67e93b5169a1
131 download-only = true
132 on-update = true
133
134 [template-kvm-export-script]
135 recipe = hexagonit.recipe.download
136 url = ${:_profile_base_location_}/template/kvm-export.sh.in
137 filename = kvm-export.sh.in
138 md5sum = 95fde96f35cbf90d677c44d18b60fafb
139 download-only = true
140 mode = 0755
141
142 [template-nbd]
143 recipe = slapos.recipe.template
144 url = ${:_profile_base_location_}/instance-nbd.cfg.in
145 md5sum = f634a5249b773658b7a7bc9fa9bb0368
146 output = ${buildout:directory}/template-nbd.cfg
147 mode = 0644
148
149 [template-frontend]
150 recipe = slapos.recipe.template
151 url = ${:_profile_base_location_}/instance-frontend.cfg.in
152 md5sum = cdb690495e9eb007d2b7d2f8e12f5c59
153 output = ${buildout:directory}/template-frontend.cfg
154 mode = 0644