[buildout]
extends =
  buildout.hash.cfg
  ../../stack/caucase/buildout.cfg
# Monitoring stack (keep on bottom)
  ../../stack/monitor/buildout.cfg

parts +=
  instance
  caucase-eggs

[instance-caucased]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}
# XXX: following mode should be the default
mode = 644

[instance]
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename}
context =
  key bin_directory buildout:bin-directory
  key develop_eggs_directory buildout:develop-eggs-directory
  key eggs_directory buildout:eggs-directory
  key caucase_jinja2_library caucase-jinja2-library:target
  key instance_caucased instance-caucased:target
  key template_monitor monitor2-template:rendered