common.cfg 4.9 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 = bdd0495ef729e7272ec9c97aca919c09
84 85 86
output = ${buildout:directory}/template.cfg
mode = 0644

87 88 89
[template-kvm]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm.cfg.in
90
#md5sum = c3c888c78bbff334135be9e8ad5885a9
91 92 93
output = ${buildout:directory}/template-kvm.cfg
mode = 0644

94
[template-kvm-resilient]
95
recipe = hexagonit.recipe.download
96
url = ${:_profile_base_location_}/instance-kvm-resilient.cfg.jinja2
97
mode = 644
98
#md5sum = 6753004b582c0470bd028253ce1964ad
99
download-only = true
100
on-update = true
101 102

[template-kvm-resilient-test]
103 104
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm-resilient-test.cfg.jinja2
105
md5sum = f3ab367fb57fe3ce22b234f7b9d69b5e
106
mode = 0644
107
download-only = true
108
on-update = true
109 110 111 112 113 114 115 116 117 118 119 120

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

[template-kvm-export]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm-export.cfg.in
128
md5sum = 64a1a505aff9fde52afac46240811047
129 130 131 132 133 134 135
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
136
md5sum = 3e878b3343c76f0d6950986fffcb6a8c
137 138 139
download-only = true
mode = 0755

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

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