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