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

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

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

  stunnel

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

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

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

53 54 55 56 57 58 59 60 61 62 63
[template-apache-frontend]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-apache-frontend.cfg
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
mode = 0644

64
[download-template]
65
recipe = slapos.recipe.build:download
66
url = ${:_profile_base_location_}/templates/${:filename}
67 68
mode = 640

69 70 71 72
[template-slave-list]
<=download-template
filename = apache-custom-slave-list.cfg.in

73
[template-slave-configuration]
74 75
<=download-template
filename = custom-virtualhost.conf.in
76

77
[template-replicate-publish-slave-information]
78 79
<=download-template
filename = replicate-publish-slave-information.cfg.in
80

81
[template-apache-frontend-configuration]
82 83
<=download-template
filename = apache.conf.in
84

85
[template-custom-slave-list]
86 87
<=download-template
filename = apache-default-slave-list.cfg.in
88

89
[template-not-found-html]
90
<=download-template
91 92 93
filename = notfound.html

[template-default-virtualhost]
94 95
<=download-template
filename = 000.conf.in
96

97
[template-default-slave-virtualhost]
98 99
<=download-template
filename = default-virtualhost.conf.in
100 101

[template-cached-slave-virtualhost]
102 103
<=download-template
filename = cached-virtualhost.conf.in
104

105
[template-log-access]
106 107
<=download-template
filename = template-log-access.conf.in
108

109
[template-empty]
110 111
<=download-template
filename = empty.in
112 113

[template-wrapper]
114
recipe = slapos.recipe.template
115
url = ${:_profile_base_location_}/templates/wrapper.in
116 117
output = ${buildout:directory}/template-wrapper.cfg
mode = 0644
118 119 120

[template-trafficserver-records-config]
recipe = hexagonit.recipe.download
121
ignore-existing = true
122 123 124 125 126
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = records.config.jinja2
download-only = true
mode = 0644
127 128 129

[template-trafficserver-storage-config]
recipe = hexagonit.recipe.download
130
ignore-existing = true
131 132 133 134 135
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = storage.config.jinja2
download-only = true
mode = 0644
136

137 138 139 140 141 142 143
# NGINX Configuration
[template-nginx-configuration]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/nginx.cfg.in
output = ${buildout:directory}/template-nginx.cfg.in
mode = 0644

144 145 146 147 148 149 150 151
[template-apache-lazy-script-call]
<=download-template
filename = apache-lazy-script-call.sh.in

[template-apache-graceful-script]
<=download-template
filename = apache-graceful-script.sh.in

152
[template-nginx-eventsource-slave-virtualhost]
153 154
<=download-template
filename = nginx-eventsource-slave.conf.in
155 156

[template-nginx-notebook-slave-virtualhost]
157 158
<=download-template
filename = nginx-notebook-slave.conf.in
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188

# 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