common.cfg 4.16 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/coreutils/buildout.cfg
6
  ../../component/busybox/buildout.cfg
7
  ../../component/curl/buildout.cfg
8
  ../../component/dash/buildout.cfg
9
  ../../component/dcron/buildout.cfg
10
  ../../component/git/buildout.cfg
Jérome Perrin's avatar
Jérome Perrin committed
11
  ../../component/tig/buildout.cfg
12
  ../../component/logrotate/buildout.cfg
13
  ../../component/lxml-python/buildout.cfg
14
  ../../component/nano/buildout.cfg
15
  ../../component/nginx/buildout.cfg
16
  ../../component/openssh/buildout.cfg
17
  ../../component/rsync/buildout.cfg
18
  ../../component/pycurl/buildout.cfg
19
  ../../component/python-2.7/buildout.cfg
20
  ../../component/screen/buildout.cfg
21
  ../../component/shellinabox/buildout.cfg
22
  ../../component/vim/buildout.cfg
23
  ../../component/zip/buildout.cfg
24
  ../../stack/slapos.cfg
25
  ../../stack/flask.cfg
26
  ../../stack/resilient/buildout.cfg
27
  ../../stack/monitor/buildout.cfg
28

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

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

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

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

49
[template-base]
50
recipe = slapos.recipe.template
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
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
71 72 73
output = ${buildout:directory}/template.cfg

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

141
[eggs]
142
recipe = zc.recipe.egg
143
eggs =
144
  ${pycurl:egg}
Nicolas Wavrant's avatar
Nicolas Wavrant committed
145
  collective.recipe.environment
146
  collective.recipe.template
147
  cns.recipe.symlink
148
  erp5.util
149
  lock-file
Nicolas Wavrant's avatar
Nicolas Wavrant committed
150 151
  plone.recipe.command
  slapos.recipe.build
152
  slapos.toolbox[flask_auth]
153 154 155 156
# 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
157
  futures
158
  ${slapos-cookbook:eggs}
159 160 161 162

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