[buildout]
extends =
  buildout.hash.cfg
  ../../stack/slapos.cfg
  ../../stack/monitor/buildout.cfg
  ../../component/headless-chromium/buildout.cfg
  ../../component/openssl/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../component/fonts/buildout.cfg
  ../../component/fontconfig/buildout.cfg

parts =
  slapos-cookbook
  template-cfg

[template-cfg]
recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/template.cfg
url = ${:_profile_base_location_}/${:filename}
context =
  section buildout buildout
  key openssl_location openssl:location
  key nginx_location nginx:location
  key liberation_fonts_location liberation-fonts:location
  key fontconfig_location fontconfig:location
  key chromium_wrapper headless-chromium-wrapper:output
  key devtools_frontend headless-chromium:devtools-frontend
  key template_nginx_config_target template-nginx-conf:target
  key template_mime_types_target template-mime-types:target
  key template_index_html_target template-index-html:target
  key template_fonts_conf_target template-fonts-conf:output
  key template_instance_headless_chromium_target instance-headless-chromium:target
  key template_monitor monitor2-template:output

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

[instance-headless-chromium]
<= download-base

[template-nginx-conf]
<= download-base

[template-mime-types]
<= download-base

[template-index-html]
<= download-base
