common.cfg 4.88 KB
Newer Older
1 2 3
[buildout]

extends =
4
  ../../component/6tunnel/buildout.cfg
5 6 7 8 9 10 11 12
  ../../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
Vivien Alger's avatar
Vivien Alger committed
13
  ../../component/dcron/buildout.cfg
14
  ../../stack/nodejs.cfg
15
  ../../stack/resilient/buildout.cfg
16 17 18 19 20 21
  ../../stack/slapos.cfg

parts =
  template
  eggs

22 23
# XXX: we have to manually add this for resilience
  rdiff-backup
24
  collective.recipe.template-egg
25

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#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
46
  erp5.util
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66

[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 =
67
  export HOME=${:location};
68 69 70 71 72 73 74 75 76 77
  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


78 79 80 81 82
# Create all templates that will be used to deploy instances

[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
83
md5sum = bc5a986c7208d02d3284a897ea90b39d
84 85 86
output = ${buildout:directory}/template.cfg
mode = 0644

87
[template-kvm]
88 89 90
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
91
md5sum = 36efccfeda60e2990fc71df6264cbe9d
92 93
download-only = true
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 105
recipe = hexagonit.recipe.download
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 112 113 114 115 116 117 118 119 120 121

[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
122
md5sum = e03ed049cddd8d157228b09e1ebc071a
123 124 125 126
download-only = true
mode = 0755

[template-kvm-export]
127 128 129 130 131 132
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm-export.cfg.jinja2
mode = 644
md5sum = 900f416956903fa4858e67e93b5169a1
download-only = true
on-update = true
133 134 135 136 137

[template-kvm-export-script]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/kvm-export.sh.in
filename = kvm-export.sh.in
138
md5sum = 95fde96f35cbf90d677c44d18b60fafb
139 140 141
download-only = true
mode = 0755

142 143 144
[template-nbd]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-nbd.cfg.in
145
md5sum = f634a5249b773658b7a7bc9fa9bb0368
146 147 148 149 150 151
output = ${buildout:directory}/template-nbd.cfg
mode = 0644

[template-frontend]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-frontend.cfg.in
152
md5sum = cdb690495e9eb007d2b7d2f8e12f5c59
153 154
output = ${buildout:directory}/template-frontend.cfg
mode = 0644