software.cfg 1.31 KB
Newer Older
iv's avatar
iv committed
1 2 3 4 5 6 7 8
[buildout]
extends =
# basic needs
  ../../stack/slapos.cfg

parts +=
# use stack/slapos.cfg
  slapos-cookbook
9
  verify-packages-exist-on-host
iv's avatar
iv committed
10 11 12 13
  template-instance
  install-eggs-for-the-instance

[versions]
14
slapos.recipe.template = 3.0
iv's avatar
iv committed
15

16
[verify-packages-exist-on-host]
iv's avatar
iv committed
17 18 19 20 21 22 23 24 25 26 27 28
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
29
md5sum = fe8ce63b2d2f872427a52854c5cb5167
iv's avatar
iv committed
30
mode = 0644
31
scripts_dir = ${:_profile_base_location_}/scripts
32
logo_dir = ${:_profile_base_location_}/logo
33 34
curl_path = ${curl:location}/bin
git_path = ${git:location}/bin
iv's avatar
iv committed
35 36 37 38
context =
# for access to the eggs from the instance
  key eggs_directory buildout:eggs-directory
  key develop_eggs_directory buildout:develop-eggs-directory
39
  key scripts_dir :scripts_dir
40
  key logo_dir :logo_dir
41 42
  key curl_path :curl_path
  key git_path :git_path
iv's avatar
iv committed
43 44 45 46 47 48

[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
49
       plone.recipe.command