[buildout]
extends =
    ../../stack/slapos.cfg
    ../../component/rina-tools/buildout.cfg
parts =
    slapos-cookbook
    template

[template]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in
md5sum = f6c61225990986d94d0017b07b873aa7
# XXX: "template.cfg" is hardcoded in instanciation recipe
rendered = ${buildout:directory}/template.cfg
context =
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key python_executable python:executable
    key rina_tools_location rina-tools:location
    key instance_root instance-root:target
    key instance_server instance-server:target
    key rina_proxy proxy:target

[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_}.cfg.in
# XXX: following mode should be the default
mode = 644

[instance-root]
<= download-base
md5sum = f647054be67998f9eece174f106c4464

[instance-server]
<= download-base
md5sum = 88a451b0f7f8def12713b92b91659b98

[proxy]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_}
mode = 755
md5sum = 78b77a6bda9958f547f7d89b747731e3

[versions]
slapos.recipe.template = 4.4
