common.cfg 6.52 KB
Newer Older
1 2
[buildout]
extends =
3
  ../../stack/slapos.cfg
4
  ../../component/git/buildout.cfg
5
  ../../component/dash/buildout.cfg
6 7
  ../../component/lxml-python/buildout.cfg
  ../../component/apache/buildout.cfg
8
  ../../component/gzip/buildout.cfg
9 10 11
  ../../component/stunnel/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/logrotate/buildout.cfg
12
  ../../component/pycurl/buildout.cfg
13
  ../../component/python-cryptography/buildout.cfg
14
  ../../component/rdiff-backup/buildout.cfg
15 16
  ../../component/trafficserver/buildout.cfg

17 18 19 20
  ../../component/pycurl/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../stack/nodejs.cfg
# Monitoring stack (keep on bottom)
21
  ../../stack/monitor/buildout.cfg
22

23
parts +=
24
  template
25 26
  template-apache-frontend
  template-apache-replicate
27 28 29 30 31 32 33 34
  apache-2.2
  apache-antiloris-apache-2.2

  stunnel

  dcron
  logrotate
  rdiff-backup
35 36 37 38
  nginx-push-stream-output
  npm-modules
  proxy-by-url
  http-proxy
39

40 41 42
# Extent extra-eggs.
[extra-eggs]
eggs +=
43 44
  websockify
  erp5.util
45

46 47 48
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
49
md5sum = f686f765e55d1dce2e55a400f0714b3e 
50
output = ${buildout:directory}/template.cfg
51 52
mode = 0644

53 54 55
[template-apache-frontend]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-apache-frontend.cfg
56
md5sum = 6d437f8a3836484d42bf9bf8d747e201 
57 58 59 60 61 62
output = ${buildout:directory}/template-apache-frontend.cfg
mode = 0644

[template-apache-replicate]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-apache-replicate.cfg.in
63
md5sum = 9b17c835bcd927269cf510bf612f5985
64 65
mode = 0644

66 67
[template-slave-list]
recipe = slapos.recipe.build:download
68
url = ${:_profile_base_location_}/templates/apache-custom-slave-list.cfg.in
69
md5sum = 6828096d9ec4333b8c72a2e2ab768ea0 
70 71 72 73
mode = 640

[template-slave-configuration]
recipe = slapos.recipe.build:download
74
url = ${:_profile_base_location_}/templates/custom-virtualhost.conf.in
75
md5sum = d103143e5d50682bd5ad43117d82e2fa
76 77
mode = 640

78 79 80
[template-replicate-publish-slave-information]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/templates/replicate-publish-slave-information.cfg.in
81
md5sum = 665e83d660c9b779249b2179d7ce4b4e
82 83
mode = 640

84 85
[template-apache-frontend-configuration]
recipe = slapos.recipe.build:download
86
url = ${:_profile_base_location_}/templates/apache.conf.in
87
md5sum = 7d5f0f38e4dd81ff26f2499890b13315
88
mode = 640
89

90 91
[template-custom-slave-list]
recipe = slapos.recipe.build:download
92
url = ${:_profile_base_location_}/templates/apache-default-slave-list.cfg.in
93
md5sum = 5252c0db72b57ce6debb9d4fb4e706a1 
94 95
mode = 640

96 97
[template-not-found-html]
recipe = slapos.recipe.build:download
98
url = ${:_profile_base_location_}/templates/notfound.html
99
filename = notfound.html
100
md5sum = f20d6c3d2d94fb685f8d26dfca1e822b
101 102 103 104
mode = 640

[template-default-virtualhost]
recipe = slapos.recipe.build:download
105
url = ${:_profile_base_location_}/templates/000.conf.in
106
md5sum = d98a01182f38868612948c87d5231428
107 108
mode = 640

109 110
[template-default-slave-virtualhost]
recipe = slapos.recipe.build:download
111
url = ${:_profile_base_location_}/templates/default-virtualhost.conf.in
112
md5sum = e5ed71c5e22ab91e33a71bd09879e23c 
113 114 115 116 117
mode = 640

[template-cached-slave-virtualhost]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/templates/cached-virtualhost.conf.in
118
md5sum = 432e55df3b42243a98b564cca57e2396 
119 120
mode = 640

121 122 123 124 125 126
[template-log-access]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/templates/template-log-access.conf.in
md5sum = f85005b430978f3bd24ee7ce11b0e304
mode = 640

127 128
[template-empty]
recipe = slapos.recipe.build:download
129
url = ${:_profile_base_location_}/templates/empty.in
130
md5sum = c2314c3a9c3412a38d14b312d3df83c1
131 132 133
mode = 640

[template-wrapper]
134
recipe = slapos.recipe.template
135
url = ${:_profile_base_location_}/templates/wrapper.in
136 137
output = ${buildout:directory}/template-wrapper.cfg
mode = 0644
138
md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
139 140 141

[template-trafficserver-records-config]
recipe = hexagonit.recipe.download
142
ignore-existing = true
143
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
144
md5sum = 59287d2de3d948b135619edd211a5e84
145 146 147 148
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = records.config.jinja2
download-only = true
mode = 0644
149 150 151

[template-trafficserver-storage-config]
recipe = hexagonit.recipe.download
152
ignore-existing = true
153 154 155 156 157 158
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
md5sum = 23c83efaf2fb0f9f0b3096bbfdda05c1
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = storage.config.jinja2
download-only = true
mode = 0644
159

160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
# NGINX Configuration
[template-nginx-configuration]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/nginx.cfg.in
md5sum = 18633ce55e53340efa1ba7693aac4152 
output = ${buildout:directory}/template-nginx.cfg.in
mode = 0644

[template-nginx-eventsource-slave-virtualhost]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/templates/nginx-eventsource-slave.conf.in
md5sum = a5186f666acb2f040ede04c91e60408f 
mode = 0644

[template-nginx-notebook-slave-virtualhost]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/templates/nginx-notebook-slave.conf.in
md5sum = 82d74a7f2aceb2b4a7acc6259291b7f2 
mode = 0644
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208

# Migrated from KVM recipe
[http-proxy]
# https://github.com/nodejitsu/node-http-proxy
recipe = slapos.recipe.build:download-unpacked
# use upstream when merged
url = https://lab.nexedi.com/nexedi/node-http-proxy/repository/archive.zip?ref=a5d3aff428ee8d840068b439f6ce121077f1144f
md5sum = 65602466066444c718215de41f546585

[proxy-by-url]
# https://github.com/dominictarr/proxy-by-url
recipe = slapos.recipe.build:download-unpacked
# use upstream when merged
url = https://lab.nexedi.com/nexedi/proxy-by-url/repository/archive.zip?ref=59fcb11a3e00c45b4b0362e76f29653abb313072
md5sum = c383e0c5ff31b56f7987466e8304c941

[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