PROJECT_MOVED -> https://lab.nexedi.com/nexedi/slapos
[slapos.git] / software / varnish / software.cfg
1 [buildout]
2 # Local development
3 develop =
4   ${:parts-directory}/slapos.cookbook-repository
5
6 extends =
7   ../../stack/slapos.cfg
8   ../../component/dash/buildout.cfg
9   ../../component/dcron/buildout.cfg
10   ../../component/gcc/buildout.cfg
11   ../../component/git/buildout.cfg
12   ../../component/gzip/buildout.cfg
13   ../../component/logrotate/buildout.cfg
14   ../../component/python-2.7/buildout.cfg
15   ../../component/stunnel/buildout.cfg
16   ../../component/varnish/buildout.cfg
17   ../../component/wget/buildout.cfg
18
19 parts =
20   dash
21   dcron
22   gcc-minimal
23   slapos-toolbox
24   stunnel
25   varnish-3.0
26   wget
27 # Local development
28   slapos.cookbook-repository
29   check-recipe
30 # Create instance template
31   template
32
33 # Local development
34 [slapos.cookbook-repository]
35 recipe = slapos.recipe.build:gitclone
36 repository = http://git.erp5.org/repos/slapos.git
37 branch = master
38 git-executable = ${git:location}/bin/git
39
40 [check-recipe]
41 recipe = plone.recipe.command
42 stop-on-error = true
43 update-command = ${:command}
44 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
45
46 [template-jinja2-base]
47 recipe = slapos.recipe.template:jinja2
48 mode = 640
49 template = ${:_profile_base_location_}/${:filename}.in
50 rendered = ${buildout:directory}/${:filename}
51 # XXX: extra-context is needed because we cannot append to a key of an extended
52 # section.
53 extra-context =
54 context =
55     key bin_directory buildout:bin-directory
56     key develop_eggs_directory buildout:develop-eggs-directory
57     key eggs_directory buildout:eggs-directory
58     ${:extra-context}
59
60 [template]
61 < = template-jinja2-base
62 # XXX: "template.cfg" is hardcoded in instanciation recipe
63 filename = template.cfg
64 template = ${:_profile_base_location_}/instance.cfg.in
65 md5sum = 8e906d749e19ee13fe5b7f4d9bfcf896
66 extra-context =
67     key buildout_bin_directory buildout:bin-directory
68     key dash_location dash:location
69     key dcron_location dcron:location
70     key gcc_location gcc-minimal:location
71     key gzip_location gzip:location
72     key logrotate_location logrotate:location
73     key stunnel_location stunnel:location
74     key template_varnish template-varnish:target
75     key varnish_location varnish-3.0:location
76     key wget_location wget:location
77
78 [template-varnish]
79 recipe = slapos.recipe.build:download
80 url = ${:_profile_base_location_}/instance-varnish.cfg.in
81 md5sum = 4334d900f212d170fd0ca35865879bdf
82 mode = 640
83
84 [eggs]
85 recipe = zc.recipe.egg
86 eggs =
87   ${lxml-python:egg}
88   erp5.util
89   pytz
90   lock_file
91   inotifyx
92 scripts =
93   web_checker_utility = erp5.util.webchecker:web_checker_utility
94
95 [slapos-toolbox]
96 recipe = zc.recipe.egg
97 eggs =
98   ${lxml-python:egg}
99   slapos.toolbox
100 scripts =
101   killpidfromfile
102
103 [versions]
104 erp5.util = 0.4.41
105 slapos.toolbox = 0.40.4