software.cfg 1.43 KB
Newer Older
iv's avatar
iv committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
[buildout]
extends =
# basic needs
  ../../stack/slapos.cfg

parts +=
# use stack/slapos.cfg
  slapos-cookbook
  verify-sudo-exists-on-host
  template-instance
  install-eggs-for-the-instance

#add eggs needed by the instance
find-links += 
  https://pypi.python.org/packages/source/s/slapos.recipe.build/slapos.recipe.build-0.21.tar.gz
  https://pypi.python.org/packages/source/p/plone.recipe.command/plone.recipe.command-1.1.zip

versions = versions

[versions]
plone.recipe.command = 1.1
slapos.recipe.template = 2.8
slapos.recipe.build = 0.21

[verify-sudo-exists-on-host]
recipe = plone.recipe.command
stop-on-error = true
# run the same command when installing and on updates
update-command = ${:command}
command = sudo -V

[template-instance]
# create the instance.cfg file in the buildout directory
# (use jinja for templating)
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
iv's avatar
iv committed
38
md5sum = 1d0d186af7d838ae79313d1b330c1c37
iv's avatar
iv committed
39
mode = 0644
40
scripts_dir = ${:_profile_base_location_}/scripts
iv's avatar
iv committed
41 42 43 44
context =
# for access to the eggs from the instance
  key eggs_directory buildout:eggs-directory
  key develop_eggs_directory buildout:develop-eggs-directory
45
  key scripts_dir :scripts_dir
iv's avatar
iv committed
46 47 48 49 50 51 52

[install-eggs-for-the-instance]
# after installation of the eggs, the recipes
# will be available (added to sys.path)
recipe = zc.recipe.egg
eggs = slapos.recipe.build
       plone.recipe.command