[buildout]
parts =
  instance

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
service = $${buildout:directory}/etc/service
run = $${buildout:directory}/etc/run
agentlog = $${buildout:directory}/var/log/agent
srv = $${buildout:directory}/srv
bin = $${buildout:directory}/bin
testnode = $${buildout:directory}/srv/testnode

[instance]
recipe = slapos.cookbook:wrapper
command-line =
  ${buildout:bin-directory}/agent
  --pidfile=$${buildout:directory}/srv/agent.pid
  --log=$${buildout:directory}/var/log/agent/agent.log
  $${agent-cfg:output}

wrapper-path = $${directory:service}/agent
output = $${:wrapper-path}

[agent-cfg]
recipe = slapos.recipe.template
url = ${agent.cfg.in:target} 
output = $${directory:etc}/agent.cfg

[slap-parameter]
timeout = 3600 

node_title = 
test_title = 
project_title = 
task_count = 1 
report_url = 
