software.cfg 2.37 KB
Newer Older
1
[buildout]
2 3 4
slaposcookbook_recipe_location = ${:parts-directory}/slaposcookbook
develop =
  ${:slaposcookbook_recipe_location}
5

6 7 8
extensions =
  slapos.tool.networkcache
  slapos.zcbworkarounds
9
  slapos.rebootstrap
10

11
find-links +=
12 13 14
    http://www.nexedi.org/static/packages/source/slapos.buildout/

extends =
15
  ../../component/git/buildout.cfg
16
  ../../component/memcached/buildout.cfg
17
  ../../component/python-2.7/buildout.cfg
18 19 20
  ../../component/dcron/buildout.cfg
  ../../component/stunnel/buildout.cfg
  ../../component/rdiff-backup/buildout.cfg
21
  ../../component/lxml-python/buildout.cfg
22
  
23 24
versions = versions

25
parts =
26
# Create instance template
27
#TODO : list here all parts.
28
  template
29
  eggs
30
  instance-recipe-egg
31 32 33 34 35 36

# XXX: Workaround of SlapOS limitation
# Unzippig of eggs is required, as SlapOS do not yet provide nicely working
# development / fast switching environment for whole software
unzip = true

37 38 39 40
[rebootstrap]
# Default first version of rebootstrapped python
version = 2
section = python2.7
41

42 43 44 45
[instance-recipe]
egg = slapos.cookbook
module = memcached

46
[instance-recipe-egg]
47 48 49 50 51
# Just so buildout executes [slaposcookbook] before [eggs], as
# - [eggs] references [slaposcookbook]
# - [instance-recipe] needs [slaposcookbook] to be finished
# - we cannot rely on anything else being executed before [instance-recipe]
slaposcookbook_dummy = ${slaposcookbook:location}
52
recipe = zc.recipe.egg
53
python = python2.7
54 55
eggs = ${instance-recipe:egg}

56 57
[eggs]
recipe = zc.recipe.egg
58
python = python2.7
59 60 61
eggs =
  ${lxml-python:egg}

62
[template]
63 64
# Default template for the instance.
recipe = slapos.recipe.template
65
url = ${:_profile_base_location_}/instance.cfg
66
md5sum = 837caf9897332a5f70c72438f1dc5bae
67 68 69
output = ${buildout:directory}/template.cfg
mode = 0644

70 71 72 73 74 75 76 77 78 79
[slaposcookbook]
recipe = plone.recipe.command
branch = memcached
git_param =--quiet -b ${:branch}
git = ${git:location}/bin/git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
command = ${:git} clone ${:git_param} http://git.erp5.org/repos/slapos.git ${:location} || exit 1;
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet

80 81 82
[versions]
# Required by:
# slapos.cookbook==0.1
83 84 85 86 87 88 89
#collective.recipe.template = 1.8
#slapos.slap = 1.2.dev-r4679
#netaddr = 0.7.5
#xml-marshaller = 0.9.7

#zc.buildout=1.5.3-dev-SlapOS-002
#setuptools = 0.6c12dev-r88795
90

91 92
# Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-001