[buildout]

extends =
  ../../component/openssl/buildout.cfg
  ../../component/curl/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/golang/buildout.cfg
  ../../component/restic/buildout.cfg
  ../../stack/caucase/buildout.cfg
  ../../stack/slapos.cfg
  buildout.hash.cfg

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

[gowork]
install +=
  ${git.github.com_restic_rest-server:location}:./cmd/...

[git.github.com_restic_rest-server]
<= go-git-package
go.importpath = github.com/restic/rest-server
repository =  https://github.com/restic/rest-server
revision = v0.10.0-0-g9313f19

[instance.cfg.in]
recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/instance.cfg
url = ${:_profile_base_location_}/${:filename}
context =
  section buildout buildout
  key gowork_bin gowork:bin
  raw openssl_bin ${openssl:location}/bin/openssl
  raw htpasswd_bin ${apache:location}/bin/htpasswd
  raw dash_bin ${dash:location}/bin/dash
  raw curl_bin ${curl:location}/bin/curl
  key template_monitor monitor2-template:output
import-list =
  file caucase caucase-jinja2-library:target