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