runner: new promise checking that supervisord service is running
[slapos.git] / software / slaprunner / common.cfg
1 [buildout]
2 extends =
3   ../../component/bash/buildout.cfg
4   ../../component/busybox/buildout.cfg
5   ../../component/curl/buildout.cfg
6   ../../component/dash/buildout.cfg
7   ../../component/dcron/buildout.cfg
8   ../../component/dropbear/buildout.cfg
9   ../../component/git/buildout.cfg
10   ../../component/logrotate/buildout.cfg
11   ../../component/lxml-python/buildout.cfg
12   ../../component/nano/buildout.cfg
13   ../../component/nginx/buildout.cfg
14   ../../component/rsync/buildout.cfg
15   ../../component/python-2.7/buildout.cfg
16   ../../component/screen/buildout.cfg
17   ../../component/shellinabox/buildout.cfg
18   ../../component/vim/buildout.cfg
19   ../../stack/flask.cfg
20   ../../stack/resilient/buildout.cfg
21   ../../stack/monitor/buildout.cfg
22   ../../stack/slapos.cfg
23
24 parts =
25   template
26   eggs
27   instance-runner-import
28   instance-runner-export
29   slapos-cookbook
30   template-slapos-cfg
31 # XXX: we have to manually add this for resilience
32   rdiff-backup
33   collective.recipe.template-egg
34
35 [template]
36 recipe = slapos.recipe.template
37 url = ${:_profile_base_location_}/instance.cfg
38 output = ${buildout:directory}/template.cfg
39 md5sum = 8a47421ac6158b4ee476acab212c67d9
40 mode = 0644
41
42 [template-runner]
43 recipe = slapos.recipe.template
44 url = ${:_profile_base_location_}/instance-runner.cfg
45 output = ${buildout:directory}/template-runner.cfg.in
46 md5sum = 66b724a3b01e56c48ec53152855c410c
47 mode = 0644
48
49 [template-runner-import-script]
50 recipe = hexagonit.recipe.download
51 url = ${:_profile_base_location_}/template/runner-import.sh.jinja2
52 download-only = true
53 md5sum = b003f6a6963f7787948be85c3d479ccd
54 filename = runner-import.sh.jinja2
55 mode = 0644
56
57 [instance-runner-import]
58 recipe = slapos.recipe.template
59 url = ${:_profile_base_location_}/instance-runner-import.cfg.in
60 output = ${buildout:directory}/instance-runner-import.cfg
61 md5sum = a85d054b3e2ae9243d8d188c897dc121
62 mode = 0644
63
64 [template-runner-export-script]
65 recipe = hexagonit.recipe.download
66 url = ${:_profile_base_location_}/template/runner-export.sh.jinja2
67 download-only = true
68 md5sum = 246167ed081027618ef127a6fffd13ed
69 filename = runner-export.sh.jinja2
70 mode = 0644
71
72 [instance-runner-export]
73 recipe = slapos.recipe.template
74 url = ${:_profile_base_location_}/instance-runner-export.cfg.in
75 output = ${buildout:directory}/instance-runner-export.cfg
76 md5sum = 521bad4c571b5b2dc3eee6090802de95
77 mode = 0644
78
79 [template-resilient]
80 recipe = slapos.recipe.download
81 url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
82 md5sum = aec7fb7fe57b48c5c26c7adcdff36d26
83 filename = instance-resilient.cfg.jinja2
84 mode = 0644
85
86 [template-resilient-test]
87 recipe = hexagonit.recipe.download
88 url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
89 download-only = true
90 md5sum = 01545742e97b4b95cd5e14d5d7cb1584
91 filename = instance-resilient-test.cfg.jinja2
92 mode = 0644
93
94 [template_nginx_conf]
95 recipe = hexagonit.recipe.download
96 url = ${:_profile_base_location_}/nginx_conf.in
97 download-only = true
98 md5sum = 7c0608eafb5c6998846851744a70b3de
99 filename = nginx_conf.in
100 mode = 0644
101
102 [template_httpd_conf]
103 recipe = hexagonit.recipe.download
104 url = ${:_profile_base_location_}/httpd_conf.in
105 download-only = true
106 md5sum = ac92f32bd9a0d8c39657b80d4a80f5cc
107 filename = httpd_conf.in
108 mode = 0644
109
110 [template_launcher]
111 recipe = slapos.recipe.download
112 url = ${:_profile_base_location_}/launcher.in
113 md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
114 filename = launcher.in
115 mode = 0644
116 location = ${buildout:parts-directory}/${:_buildout_section_name_}
117
118 [template-slapos-cfg]
119 recipe = hexagonit.recipe.download
120 url = ${:_profile_base_location_}/template/${:filename}
121 md5sum = ba3721425ba34e265b1f8390ed7196cf
122 location = ${buildout:parts-directory}/${:_buildout_section_name_}
123 filename = slapos.cfg.in
124 download-only = true
125 mode = 0644
126
127 [template-parameters]
128 recipe = hexagonit.recipe.download
129 url = ${:_profile_base_location_}/${:filename}
130 md5sum = f8446fcf254b4929eb828a9a1d7e5f62
131 location = ${buildout:parts-directory}/${:_buildout_section_name_}
132 filename = parameters.xml.in
133 download-only = true
134 mode = 0644
135
136 [template-bash-profile]
137 recipe = hexagonit.recipe.download
138 url = ${:_profile_base_location_}/template/${:filename}
139 md5sum = 0e88fc8739f2aff581da787c2843e682
140 location = ${buildout:parts-directory}/${:_buildout_section_name_}
141 filename = bash_profile.in
142 download-only = true
143 mode = 0644
144
145 [template-supervisord]
146 recipe = hexagonit.recipe.download
147 url = ${:_profile_base_location_}/template/${:filename}
148 md5sum = af2d78440a358ec268d7ece4fce99ec9
149 location = ${buildout:parts-directory}/${:_buildout_section_name_}
150 filename = supervisord.conf.in
151 download-only = true
152 mode = 0644
153
154 [template-listener-slapgrid]
155 recipe = hexagonit.recipe.download
156 url = ${:_profile_base_location_}/template/${:filename}
157 md5sum = 49d50410cf7467175a841eb7cd0d93d4
158 location = ${buildout:parts-directory}/${:_buildout_section_name_}
159 filename = listener_slapgrid.py.in
160 download-only = true
161 mode = 0644
162
163 [eggs]
164 recipe = z3c.recipe.scripts
165 eggs =
166   ${lxml-python:egg}
167   collective.recipe.environment
168   cns.recipe.symlink
169   erp5.util
170   hexagonit.recipe.download
171   inotifyx
172   lock-file
173   lxml
174   netaddr
175   plone.recipe.command
176   pytz
177   slapos.cookbook
178   slapos.libnetworkcache
179   slapos.recipe.build
180   slapos.toolbox[flask_auth]
181   slapos.core
182   supervisor
183   xml_marshaller
184   Gunicorn
185
186 # Add slapos.libnetworkcache to path of slapos.core so that slaprunner can build SRs using cache
187 [slapos-cookbook]
188 eggs =
189   ${lxml-python:egg}
190   slapos.cookbook
191   cliff
192   hexagonit.recipe.download
193   inotifyx
194   netaddr
195   netifaces
196   requests
197   slapos.core
198   supervisor
199   xml_marshaller
200   pytz
201   slapos.libnetworkcache
202
203 [extra-eggs]
204 recipe = zc.recipe.egg
205 interpreter = pythonwitheggs
206 eggs +=
207   supervisor