slaprunner: deploys well instance-runner for jinja templatization
[slapos.git] / software / slaprunner / common.cfg
1 [buildout]
2 extends =
3   ../../component/bash/buildout.cfg
4   ../../component/cloud9/buildout.cfg
5   ../../component/curl/buildout.cfg
6   ../../component/dash/buildout.cfg
7   ../../component/dropbear/buildout.cfg
8   ../../component/git/buildout.cfg
9   ../../component/lxml-python/buildout.cfg
10   ../../component/nginx/buildout.cfg
11   ../../component/rsync/buildout.cfg
12   ../../component/python-2.7/buildout.cfg
13   ../../component/shellinabox/buildout.cfg
14   ../../component/busybox/buildout.cfg
15   ../../stack/flask.cfg
16   ../../stack/shacache-client.cfg
17   ../../stack/resilient/buildout.cfg
18   ../../stack/slapos.cfg
19
20 parts =
21   template
22   eggs
23   nginx
24   simple-proxy
25   node-frontend-template
26   http-proxy
27   npm-modules
28   instance-runner-import
29   instance-runner-export
30   slapos-cookbook
31   slapos-cfg-template 
32 # XXX: we have to manually add this for resilience
33   rdiff-backup
34   collective.recipe.template-egg
35 #  shellinabox
36
37 develop =
38   /opt/slapos.toolbox/
39   /opt/slaprunner/
40
41
42 ####################
43 ## Node JS proxy
44 ####################
45 [simple-proxy]
46 recipe = slapos.recipe.download
47 url = ${:_profile_base_location_}/simple-proxy.js
48 location = ${buildout:parts-directory}/${:_buildout_section_name_}
49 md5sum = 86e2231b3f65587b56d9be63e21a4e05
50 filename = simple-proxy.js
51 mode = 0644
52
53 [node-frontend-template]
54 recipe = slapos.recipe.download
55 url = ${:_profile_base_location_}/node-frontend.in
56 location = ${buildout:parts-directory}/${:_buildout_section_name_}
57 filename = node-frontend.in
58 md5sum = 72904152860dddb30ca936dac5bbf4cd
59 mode = 0644
60
61 [http-proxy]
62 # https://github.com/nodejitsu/node-http-proxy
63 recipe = slapos.recipe.build:download-unpacked
64 #XXX-Cedric : use upstream when merged
65 url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip
66 md5sum = 621e5fca448cbea137c5d847d780d84d
67
68 [npm-modules]
69 recipe = plone.recipe.command
70 destination = ${buildout:parts-directory}/${:_buildout_section_name_}
71 location = ${buildout:parts-directory}/${:_buildout_section_name_}
72 command =
73   export HOME=${:location};
74   rm -fr ${:destination} &&
75   mkdir -p ${:destination} &&
76   cd ${:destination} &&
77   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
78   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
79   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
80   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
81   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3
82
83
84 [template]
85 recipe = slapos.recipe.template
86 url = ${:_profile_base_location_}/instance.cfg
87 output = ${buildout:directory}/template.cfg
88 md5sum = eab09d6d6d1eedb6dde271e0f52ceca8
89 mode = 0644
90
91 [template-runner]
92 recipe = slapos.recipe.template
93 url = ${:_profile_base_location_}/instance-runner.cfg
94 output = ${buildout:directory}/template-runner.cfg.in
95 #md5sum = 77cd9bfc7887ab53c8d3b530d2f753eb
96 mode = 0644
97
98 [instance-runner-import]
99 recipe = slapos.recipe.template
100 url = ${:_profile_base_location_}/instance-runner-import.cfg.in
101 output = ${buildout:directory}/instance-runner-import.cfg
102 #md5sum = f16cb60bb16632e652bea69cd5cdd9b7
103 mode = 0644
104
105 [instance-runner-export]
106 recipe = slapos.recipe.template
107 url = ${:_profile_base_location_}/instance-runner-export.cfg.in
108 output = ${buildout:directory}/instance-runner-export.cfg
109 #md5sum = 7e71622c09271790b5cef21c8613b8ac
110 mode = 0644
111
112 [template-resilient]
113 recipe = slapos.recipe.download
114 url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
115 md5sum = b487329292b035e1b1b19ac2dc72f690
116 filename = instance-resilient.cfg.jinja2
117 mode = 0644
118
119 [template-resilient-test]
120 recipe = hexagonit.recipe.download
121 url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
122 download-only = true
123 md5sum = ac772d3a1cce4072acfabd563df449bb
124 filename = instance-resilient-test.cfg.jinja2
125 mode = 0644
126
127 [template_nginx_conf]
128 recipe = hexagonit.recipe.download
129 url = ${:_profile_base_location_}/nginx_conf.in
130 download-only = true
131 md5sum = 6d4a33db024b069778006f8c1da8c0aa
132 filename = nginx_conf.in
133 mode = 0644
134
135 [template_launcher]
136 recipe = slapos.recipe.download
137 url = ${:_profile_base_location_}/launcher.in
138 md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
139 filename = launcher.in
140 mode = 0644
141 location = ${buildout:parts-directory}/${:_buildout_section_name_}
142
143 [slapos-cfg-template]
144 recipe = hexagonit.recipe.download
145 url = ${:_profile_base_location_}/template/${:filename}
146 md5sum = 6e90b4d037ba549640345827370f8dc3
147 location = ${buildout:parts-directory}/${:_buildout_section_name_}
148 filename = slapos.cfg.in 
149 download-only = true
150 mode = 0644
151
152 [eggs]
153 recipe = z3c.recipe.scripts
154 eggs =
155   ${lxml-python:egg}
156   cns.recipe.symlink
157   erp5.util
158   hexagonit.recipe.download
159   inotifyx
160   lock-file
161   netaddr
162   slapos.cookbook
163   slapos.libnetworkcache
164   slapos.toolbox[flask_auth]
165   slapos.core
166   xml_marshaller
167   pytz
168   collective.recipe.environment
169   Gunicorn
170
171 # Add slapos.libnetworkcache to path of slapos.core so that slaprunner can build SRs using cache
172 [slapos-cookbook]
173 eggs =
174   ${lxml-python:egg}
175   slapos.cookbook
176   cliff
177   hexagonit.recipe.download
178   inotifyx
179   netaddr
180   netifaces
181   requests
182   slapos.core
183   supervisor
184   xml_marshaller
185   pytz
186   slapos.libnetworkcache