[buildout]
extends =
  ../../component/clamav/buildout.cfg
  ../../component/clammit/buildout.cfg
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../stack/caucase/buildout.cfg
  ../../stack/haproxy/default-backend.cfg
  ../../stack/logrotate/buildout.cfg
  ../../stack/slapos.cfg
  buildout.hash.cfg

parts =
  slapos-cookbook
  caucase-eggs
  instance.cfg.in

[instance.cfg.in]
recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/instance.cfg
url = ${:_profile_base_location_}/${:filename}
context =
  section buildout buildout
  section openssl openssl
  section clamav clamav
  section haproxy haproxy
  section curl curl
  section dash dash
  raw clammit_bin ${gowork:bin}/clammit
  key clamd_conf_path clamd.conf.in:target
  key freshclam_conf_path freshclam.conf.in:target
  key clammit_conf_path clammit.conf.in:target
  key template_logrotate_base template-logrotate-base:output
  key haproxy_conf_path stack-haproxy-default-backend-config:target
  key template_monitor monitor2-template:output
import-list =
  file caucase caucase-jinja2-library:target

[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}

[clamd.conf.in]
<= download-base

[freshclam.conf.in]
<= download-base

[clammit.conf.in]
<= download-base
