common.cfg 4.12 KB
Newer Older
Nicolas Wavrant's avatar
Nicolas Wavrant committed
1
[buildout]
2
extends =
3
  buildout.hash.cfg
4
  ../../component/bash/buildout.cfg
5
  ../../component/busybox/buildout.cfg
6
  ../../component/curl/buildout.cfg
7
  ../../component/dash/buildout.cfg
8
  ../../component/dcron/buildout.cfg
9
  ../../component/git/buildout.cfg
Jérome Perrin's avatar
Jérome Perrin committed
10
  ../../component/tig/buildout.cfg
11
  ../../component/logrotate/buildout.cfg
12
  ../../component/lxml-python/buildout.cfg
13
  ../../component/nano/buildout.cfg
14
  ../../component/nginx/buildout.cfg
15
  ../../component/openssh/buildout.cfg
16
  ../../component/rsync/buildout.cfg
17
  ../../component/pycurl/buildout.cfg
18
  ../../component/python-2.7/buildout.cfg
19
  ../../component/screen/buildout.cfg
20
  ../../component/shellinabox/buildout.cfg
21
  ../../component/vim/buildout.cfg
22
  ../../component/zip/buildout.cfg
23
  ../../stack/slapos.cfg
24
  ../../stack/flask.cfg
25
  ../../stack/resilient/buildout.cfg
26
  ../../stack/monitor/buildout.cfg
27

28 29 30
# stacks are listed from most generic to most specific,
# to avoid versioning issues

Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
31
common-parts =
32 33
  template
  eggs
34 35
  instance-runner-import
  instance-runner-export
36
  template-slapos-cfg
37 38
# XXX: we have to manually add this for resilience
  rdiff-backup
39
  pbs-recipe-egg
40

Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
41 42 43
parts =
  ${:common-parts}

44 45 46 47
# Use shellinabox from github with AF_UNIX support
[shellinabox]
<= shellinabox-github

48
[template-base]
49
recipe = slapos.recipe.template
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
url = ${:_profile_base_location_}/${:filename}
mode = 0644

[download-base]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
mode = 0644

[download-only-base]
< = download-base
ignore-existing = true
download-only = true

[template-download-base]
# Downloads from template directory into current directory
< = download-only-base
url = ${:_profile_base_location_}/template/${:filename}

[template]
< = template-base
70 71 72
output = ${buildout:directory}/template.cfg

[template-runner]
73
< = template-base
74
output = ${buildout:directory}/template-runner.cfg.in
75

76
[template-runner-import-script]
77
< = template-download-base
78 79
filename = runner-import.sh.jinja2

80
[instance-runner-import]
81
< = template-base
82 83
output = ${buildout:directory}/instance-runner-import.cfg

84
[template-runner-export-script]
85
< = template-download-base
86 87
filename = runner-export.sh.jinja2

88
[instance-runner-export]
89
< = download-base
90
recipe = slapos.recipe.build:download
91

92
[template-resilient]
93
< = download-base
94
recipe = slapos.recipe.build:download
95

96
[template_nginx_conf]
97
< = download-only-base
98

99
[template_httpd_conf]
100
< = download-only-base
101

102
[template_launcher]
103
< = download-base
104
recipe = slapos.recipe.build:download
105 106
location = ${buildout:parts-directory}/${:_buildout_section_name_}

107
[template-slapos-cfg]
108
< = template-download-base
109
location = ${buildout:parts-directory}/${:_buildout_section_name_}
110
filename = slapos.cfg.in
111

112
[template-parameters]
113
< = download-only-base
114 115
location = ${buildout:parts-directory}/${:_buildout_section_name_}

116
[template-bash-profile]
117
< = template-download-base
118 119 120
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = bash_profile.in

121
[template-supervisord]
122
< = template-download-base
123 124 125
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = supervisord.conf.in

126
[template-listener-slapgrid]
127
< = template-download-base
128 129 130
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = listener_slapgrid.py.in

131
[monitor-check-webrunner-internal-instance]
132
< = template-download-base
133 134 135
destination = ${buildout:parts-directory}/${:filename}
filename = monitor-check-webrunner-internal-instances.py

136
[template-resilient-software-release-information]
137
< = template-download-base
138 139
filename = resilient_software_release_information.py.in

140
[eggs]
141
recipe = zc.recipe.egg
142
eggs =
143
  ${pycurl:egg}
Nicolas Wavrant's avatar
Nicolas Wavrant committed
144
  collective.recipe.environment
145
  collective.recipe.template
146
  cns.recipe.symlink
147
  erp5.util
148
  lock-file
Nicolas Wavrant's avatar
Nicolas Wavrant committed
149 150
  plone.recipe.command
  slapos.recipe.build
151
  slapos.toolbox[flask_auth]
152 153 154 155
# gunicorn downgraded because of bug in latter versions
# setting version here allows to use an older version in tests
# see more here : https://lab.nexedi.com/nexedi/slapos/commit/391b026e22b05e9a6fba5e063f64f18544a34b92
  gunicorn==19.4.5
156
  futures
157
  ${slapos-cookbook:eggs}
158 159 160 161

[extra-eggs]
recipe = zc.recipe.egg
interpreter = pythonwitheggs
162
eggs +=
163
  supervisor
164