common.cfg 3.66 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/mosh/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
  template-slapuser-script
39 40
# XXX: we have to manually add this for resilience
  rdiff-backup
41
  pbs-recipe-egg
42

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

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

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

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

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

79
[template-runner-import-script]
80
< = template-download-base
81 82 83
filename = runner-import.sh.jinja2

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

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

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

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

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

102
[template_httpd_conf]
103
< = download-only-base
104

105
[template_launcher]
106
< = download-base
107
recipe = slapos.recipe.build:download
108

109
[template-slapos-cfg]
110
< = template-download-base
111
filename = slapos.cfg.in
112

113
[template-parameters]
114
< = download-only-base
115

116
[template-bash-profile]
117
< = template-download-base
118 119
filename = bash_profile.in

120
[template-supervisord]
121
< = template-download-base
122 123
filename = supervisord.conf.in

124
[template-listener-slapgrid]
125
< = template-download-base
126 127
filename = listener_slapgrid.py.in

128
[monitor-check-webrunner-internal-instance]
129
< = template-download-base
130
destination = ${:location}/${:filename}
131 132
filename = monitor-check-webrunner-internal-instances.py

133
[template-resilient-software-release-information]
134
< = template-download-base
135 136
filename = resilient_software_release_information.py.in

137 138 139 140
[template-slapuser-script]
< = template-download-base
filename = slapos-slapuser-script.in

141
[eggs]
142
recipe = zc.recipe.egg
143
eggs =
144
  ${pycurl:egg}
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
  gunicorn==19.7.1
153
  futures
154
  ${slapos-cookbook:eggs}
155 156 157 158

[extra-eggs]
recipe = zc.recipe.egg
interpreter = pythonwitheggs
159
eggs +=
160
  supervisor
161