Set strip top-level to true, use good tag in extends
[slapos.git] / software / lamp-template / software.cfg
1 [buildout]
2 versions = versions
3
4 parts =
5   template
6   apache-php
7   mariadb
8   eggs
9   instance-recipe-egg
10   downloadcache-workaround
11   
12 extends =
13   http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.60:/stack/lamp.cfg
14   http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.60:/stack/shacache-client.cfg
15
16 [application]
17 recipe = slapos.recipe.build:download-unpacked
18 url = Student shall put here url of zipped or tarballed web page or application
19 md5sum = Student may put here md5sum of this file, this is good idea
20 #If provided tarball does not contain top directory, option shall be changed to false
21 strip-top-level-dir = true
22 #extract-directory = 
23
24 [application-template]
25 recipe = slapos.recipe.download
26 url = Student shall put here url to template file for application
27 #md5sum = Student may put here md5sum of this file, this is good idea
28 filename = template.in
29 mode = 0644
30 location = ${buildout:parts-directory}/${:_buildout_section_name_}
31
32 [application-configuration]
33 location = Student shall put here relative path to application top level directory where configuration shall be created
34
35 [instance-recipe]
36 egg = slapos.cookbook
37 module = lamp.simple
38
39 [template]
40 # Default template for the instance.
41 recipe = slapos.recipe.template
42 url = ${:_profile_base_location_}/instance.cfg
43 #md5sum = Student shall put md5 of instance.cfg here
44 output = ${buildout:directory}/template.cfg
45 mode = 0644
46
47 [mariadb]
48 keep-compile-dir = false
49
50 [instance-recipe-egg]
51 recipe = zc.recipe.egg
52 python = python2.7
53 eggs = 
54   ${instance-recipe:egg}
55
56 [versions]
57 # Use SlapOS patched zc.buildout
58 zc.buildout = 1.5.3-dev-SlapOS-010
59
60 [downloadcache-workaround]
61 # workaround irritating problem of hexagonit.recipe.cmmi which automatically
62 # creates download cache, which in turn switches builout to "semi-offline" mode
63 recipe = plone.recipe.command
64 # in hexagonit.recipe.cmmi if there is no ${buildout:download-cache} set it resolves
65 # to ${buildout:directory}/downloads but this variable is available late, that's
66 # why it is hardcoded only for required case
67 download-cache = ${buildout:directory}/downloads
68 command = [ -d ${:download-cache} ] && rm -fr ${:download-cache}/* || exit 0
69 update-command = ${:command}
70 stop-on-error = True
71