[buildout] extends = ../../component/6tunnel/buildout.cfg ../../component/curl/buildout.cfg ../../component/dash/buildout.cfg ../../component/dcron/buildout.cfg ../../component/gzip/buildout.cfg ../../component/qemu-kvm/buildout.cfg ../../component/logrotate/buildout.cfg ../../component/noVNC/buildout.cfg ../../component/openssl/buildout.cfg ../../component/dcron/buildout.cfg ../../stack/nodejs.cfg ../../stack/resilient/buildout.cfg ../../stack/slapos.cfg parts = template eggs # XXX: we have to manually add this for resilience rdiff-backup collective.recipe.template-egg #XXX-Cedric : Currently, one can only access to KVM using noVNC. # Ideally one should be able to access KVM by using either NoVNC or VNC. # Problem is : no native crypto support in web browsers. So we have to disable ssl # In qemu builtin vnc server, and make it available only for localhost # so that only novnc can listen to it. #XXX-Cedric: Check status of https://github.com/kanaka/noVNC/issues/13 to see # When qemu has builtin support for websockets in vnc server to get rid of # Websockify (socket <-> websocket proxy server) when it is ready. # May solve previous XXX depending on the implementation. #XXX-Cedric : add list of keyboard layouts (azerty/us querty/...) parameter to qemu [eggs] recipe = z3c.recipe.scripts eggs = ${lxml-python:egg} websockify slapos.cookbook slapos.toolbox erp5.util [http-proxy] # https://github.com/nodejitsu/node-http-proxy recipe = slapos.recipe.build:download-unpacked #XXX-Cedric : use upstream when merged url = https://nodeload.github.com/desaintmartin/node-http-proxy/zipball/20120621 md5sum = 20204d0b29c2cef26e1c91e99eedca6b [proxy-by-url] # https://github.com/dominictarr/proxy-by-url recipe = slapos.recipe.build:download-unpacked #XXX-Cedric : use upstream when merged url = https://nodeload.github.com/desaintmartin/proxy-by-url/zipball/20120621 md5sum = c2609948aa708581f93b981b23880314 [npm-modules] recipe = plone.recipe.command destination = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_} command = export HOME=${:location}; rm -fr ${:destination} && mkdir -p ${:destination} && cd ${:destination} && ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 && ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 && ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 && ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 && ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3 # Create all templates that will be used to deploy instances [template] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance.cfg.in md5sum = 8617a8cc345a55688c5449528daef4d1 output = ${buildout:directory}/template.cfg mode = 0644 [template-kvm] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-kvm.cfg.in #md5sum = c3c888c78bbff334135be9e8ad5885a9 output = ${buildout:directory}/template-kvm.cfg mode = 0644 [template-kvm-resilient] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/instance-kvm-resilient.cfg.jinja2 mode = 644 md5sum = 45a846378215eded6c001d0dd729a1ec download-only = true on-update = true [template-kvm-resilient-test] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/instance-kvm-resilient-test.cfg.jinja2 md5sum = b58427f93d5fcca94bdc90661fe6080b mode = 0644 download-only = true on-update = true [template-kvm-import] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-kvm-import.cfg.in md5sum = 7b36d6c61154b7ec3113a1bfaa25a904 output = ${buildout:directory}/template-kvm-import.cfg mode = 0644 [template-kvm-import-script] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/template/kvm-import.sh.in filename = kvm-import.sh.in md5sum = e03ed049cddd8d157228b09e1ebc071a download-only = true mode = 0755 [template-kvm-export] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-kvm-export.cfg.in md5sum = 64a1a505aff9fde52afac46240811047 output = ${buildout:directory}/template-kvm-export.cfg mode = 0644 [template-kvm-export-script] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/template/kvm-export.sh.in filename = kvm-export.sh.in md5sum = bf03a90f6960b37cba812ee936a13342 download-only = true mode = 0755 [template-nbd] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-nbd.cfg.in md5sum = f634a5249b773658b7a7bc9fa9bb0368 output = ${buildout:directory}/template-nbd.cfg mode = 0644 [template-frontend] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-frontend.cfg.in md5sum = cdb690495e9eb007d2b7d2f8e12f5c59 output = ${buildout:directory}/template-frontend.cfg mode = 0644