[buildout]
parts =
  slapos-cookbook
  instance-profile

extends =
  ../../stack/monitor/buildout.cfg
  ../../stack/slapos.cfg
  ../../component/osie-coupler/buildout.cfg

[osie-coupler]
bin_dir = ${buildout:directory}/bin/
post-install =
  cp bin/server ${:bin_dir}

[instance-profile]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in
mode = 0644
rendered = ${buildout:directory}/instance.cfg
extensions = jinja2.ext.do
context =
  section buildout buildout
  raw template_monitor ${monitor2-template:output}
  key coupler_location osie-coupler:bin_dir
