software.cfg 1.43 KB
[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
md5sum = fc963e19bb083726bca7e38224c0edfa
mode = 0644
scripts_dir = ${:_profile_base_location_}/scripts
context =
# for access to the eggs from the instance
  key eggs_directory buildout:eggs-directory
  key develop_eggs_directory buildout:develop-eggs-directory
  key scripts_dir :scripts_dir

[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