[buildout]
extends =
  buildout.hash.cfg
  ../../component/bash/buildout.cfg
  ../../component/fish-shell/buildout.cfg
  ../../component/tmux/buildout.cfg
  ../../component/busybox/buildout.cfg
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/tig/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/nano/buildout.cfg
  ../../component/nginx/buildout.cfg
  ../../component/openssh/buildout.cfg
  ../../component/mosh/buildout.cfg
  ../../component/rsync/buildout.cfg
  ../../component/pycurl/buildout.cfg
  ../../component/screen/buildout.cfg
  ../../component/shellinabox/buildout.cfg
  ../../component/vim/buildout.cfg
  ../../component/zip/buildout.cfg
  ../../stack/slapos.cfg
  ../../stack/flask.cfg
  ../../stack/resilient/buildout.cfg
  ../../stack/logrotate/buildout.cfg
  ../../stack/monitor/buildout.cfg

# make sure shared-part-list is available, even for old versions
# of slapos who do not set that.
shared-part-list =

# stacks are listed from most generic to most specific,
# to avoid versioning issues

common-parts =
  slapos-command
  slapos-cookbook
  template
  instance-runner-import
  instance-runner-export
  template-slapos-cfg
  template-slapformat-definition.cfg
  template-slapuser-script
# XXX: we have to manually add this for resilience
  pbs-recipe-egg

parts =
  ${:common-parts}

[python]
part = python2.7

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

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

[template]
< = template-base
output = ${buildout:directory}/template.cfg

[template-runner]
< = template-base
output = ${buildout:directory}/template-runner.cfg.in

[template-runner-import-script]
< = download-base

[instance-runner-import]
< = download-base

[instance-runner-export]
< = download-base

[template-resilient]
< = download-base

[template_nginx_conf]
< = download-base

[template_httpd_conf]
< = download-base

[template_launcher]
< = download-base

[template-slapos-cfg]
< = download-base

[template-slapformat-definition.cfg]
< = download-base

[template-parameters]
< = download-base

[template-bash-profile]
< = download-base

[template-supervisord]
< = download-base

[template-listener-slapgrid]
< = download-base

[monitor-check-webrunner-internal-instance]
< = download-base

[template-resilient-software-release-information]
< = download-base

[template-slapuser-script]
< = download-base

[template-buildout-shared-part-list]
< = template-base
output = ${buildout:directory}/buildout-shared-part-list

[python-with-eggs]
recipe = zc.recipe.egg
interpreter = ${:_buildout_section_name_}
eggs =
  ${slapos-toolbox:eggs}
  erp5.util
  lock-file
  slapos.recipe.build
  slapos.toolbox[flask_auth]
  gunicorn
# for gunicorn[gthread]
  futures
  supervisor
# BBB: eggs used as recipe should be kept otherwise sections depending
# on it can't be uninstalled
  collective.recipe.shelloutput
scripts =
  gunicorn
  supervisord
  supervisorctl


[versions]
Flask-Auth = 0.85
futures = 3.0.5
gunicorn = 19.10.0
prettytable = 0.7.2
pycurl = 7.43.0