common.cfg 5 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/slapos.cfg
15
  ../../stack/nodejs.cfg
16
  ../../stack/resilient/buildout.cfg
17 18 19

# stacks are listed from most generic to most specific,
# to avoid versioning issues
20 21 22 23 24

parts =
  template
  eggs

25 26
# XXX: we have to manually add this for resilience
  rdiff-backup
27
  collective.recipe.template-egg
28

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

[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 =
71
  export HOME=${:location};
72 73 74 75 76 77 78 79 80 81
  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


82 83 84 85 86
# Create all templates that will be used to deploy instances

[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
87
md5sum = 4c8f07da2217e54163c265fe6fe3d41d
88 89 90
output = ${buildout:directory}/template.cfg
mode = 0644

91
[template-kvm]
92 93 94
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
95
md5sum = e16c15f72fdeb92ce1854bc25daf5ad7
96 97
download-only = true
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 109
recipe = hexagonit.recipe.download
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 116 117

[template-kvm-import]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm-import.cfg.in
118
md5sum = 6835c9309ff4bf4a0efd1850e6c66b24
119 120 121 122 123
output = ${buildout:directory}/template-kvm-import.cfg
mode = 0644

[template-kvm-import-script]
recipe = hexagonit.recipe.download
124 125
url = ${:_profile_base_location_}/template/kvm-import.sh.jinja2
filename = kvm-import.sh.jinja2
126
md5sum = 926a11421921c29f91fae8240bbcf585
127 128 129 130
download-only = true
mode = 0755

[template-kvm-export]
131 132 133
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm-export.cfg.jinja2
mode = 644
134
md5sum = c9f13c1f481ed08c75089aef1d3c6981
135 136
download-only = true
on-update = true
137 138 139

[template-kvm-export-script]
recipe = hexagonit.recipe.download
140 141
url = ${:_profile_base_location_}/template/kvm-export.sh.jinja2
filename = kvm-export.sh.jinja2
142
md5sum = 22bd2e0c8fdb39a764a14c403a3bd752
143 144 145
download-only = true
mode = 0755

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

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