Add working monitor for KVM.
[slapos.git] / software / kvm / common.cfg
1 [buildout]
2
3 extends =
4   ../../component/curl/buildout.cfg
5   ../../component/dash/buildout.cfg
6   ../../component/dcron/buildout.cfg
7   ../../component/gzip/buildout.cfg
8   ../../component/qemu-kvm/buildout.cfg
9   ../../component/logrotate/buildout.cfg
10   ../../component/noVNC/buildout.cfg
11   ../../component/openssl/buildout.cfg
12   ../../component/dcron/buildout.cfg
13   ../../stack/nodejs.cfg
14   ../../stack/slapos.cfg
15
16 parts =
17   template
18   eggs
19
20 #XXX-Cedric : Currently, one can only access to KVM using noVNC.
21 #             Ideally one should be able to access KVM by using either NoVNC or VNC.
22 #             Problem is : no native crypto support in web browsers. So we have to disable ssl
23 #             In qemu builtin vnc server, and make it available only for localhost
24 #             so that only novnc can listen to it.
25
26 #XXX-Cedric: Check status of https://github.com/kanaka/noVNC/issues/13 to see
27 #            When qemu has builtin support for websockets in vnc server to get rid of
28 #            Websockify (socket <-> websocket proxy server) when it is ready.
29 #            May solve previous XXX depending on the implementation.
30
31 #XXX-Cedric : add list of keyboard layouts (azerty/us querty/...) parameter to qemu
32
33 [eggs]
34 recipe = z3c.recipe.scripts
35 eggs =
36   ${lxml-python:egg}
37   websockify
38   slapos.cookbook
39   slapos.toolbox
40
41 [http-proxy]
42 # https://github.com/nodejitsu/node-http-proxy
43 recipe = slapos.recipe.build:download-unpacked
44 #XXX-Cedric : use upstream when merged
45 url = https://nodeload.github.com/desaintmartin/node-http-proxy/zipball/20120621
46 md5sum = 20204d0b29c2cef26e1c91e99eedca6b
47
48 [proxy-by-url]
49 # https://github.com/dominictarr/proxy-by-url
50 recipe = slapos.recipe.build:download-unpacked
51 #XXX-Cedric : use upstream when merged
52 url = https://nodeload.github.com/desaintmartin/proxy-by-url/zipball/20120621
53 md5sum = c2609948aa708581f93b981b23880314
54
55 [npm-modules]
56 recipe = plone.recipe.command
57 destination = ${buildout:parts-directory}/${:_buildout_section_name_}
58 location = ${buildout:parts-directory}/${:_buildout_section_name_}
59 command =
60   export HOME=${:location};
61   rm -fr ${:destination} &&
62   mkdir -p ${:destination} &&
63   cd ${:destination} &&
64   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
65   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
66   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
67   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
68   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3
69
70
71 [template-kvm]
72 recipe = slapos.recipe.template
73 url = ${:_profile_base_location_}/instance-kvm.cfg.in
74 md5sum = cb8adfb70882a07e1df3943983c27963
75 output = ${buildout:directory}/template-kvm.cfg
76 mode = 0644
77
78 [template-nbd]
79 recipe = slapos.recipe.template
80 url = ${:_profile_base_location_}/instance-nbd.cfg.in
81 md5sum = f634a5249b773658b7a7bc9fa9bb0368
82 output = ${buildout:directory}/template-nbd.cfg
83 mode = 0644
84
85 [template-frontend]
86 recipe = slapos.recipe.template
87 url = ${:_profile_base_location_}/instance-frontend.cfg.in
88 md5sum = cdb690495e9eb007d2b7d2f8e12f5c59
89 output = ${buildout:directory}/template-frontend.cfg
90 mode = 0644
91
92 [template]
93 recipe = slapos.recipe.template
94 url = ${:_profile_base_location_}/instance.cfg.in
95 md5sum = 0a98e34aaec7097a84066c0665e3a49a
96 output = ${buildout:directory}/template.cfg
97 mode = 0644