[buildout]
parts =
  copy-scripts
  accords-instance

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

#[url]
#recipe = slapos.cookbook:publishurl
#url =

[accords-instance]
recipe = slapos.cookbook:accords

# Options
userid = cedric.de
password = phahghae
domain = domain
#userid = $${slap-parameter:userid}
#password = $${slap-parameter:password}
#domain = $${slap-parameter:domain}
openstack_url = http://beta.enocloud.com:5000/v2.0/
os-config = $${pocdirectory:poc}/os_config.xml
listen-ip = $${slap-network-information:local-ipv4}

# Paths
accords-configuration-file = $${pocdirectory:poc}/accords.ini
manifest-source = ${accords-manifest:target}
manifest-destination = $${pocdirectory:poc}/manifest.xml
manifest-name = manifest
accords-wrapper = $${basedirectory:services}/accords
testos-wrapper = $${rootdirectory:bin}/testos
# Workaround
accords_lib_directory : ${accords:location}/lib
accords_bin_directory : ${accords:location}/bin

[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc/
var = $${buildout:directory}/var/
srv = $${buildout:directory}/srv/
bin = $${buildout:directory}/bin/

[basedirectory]
recipe = slapos.cookbook:mkdirectory
log = $${rootdirectory:var}/log/
services = $${rootdirectory:etc}/run/
run = $${rootdirectory:var}/run/
backup = $${rootdirectory:srv}/backup/

[pocdirectory]
recipe = slapos.cookbook:mkdirectory
poc = $${rootdirectory:srv}/poc
rest = $${pocdirectory:poc}/rest
service = $${pocdirectory:poc}/service
security = $${pocdirectory:poc}/security

[copy-scripts]
recipe = slapos.cookbook:copyfilelist
target-directory = $${pocdirectory:poc}
file-list =
  ${accords-scripts:location}/scripts/accords
  ${accords-scripts:location}/scripts/accords-config
  ${accords-scripts:location}/scripts/co-broker
  ${accords-scripts:location}/scripts/co-command
  ${accords-scripts:location}/scripts/co-parser
  ${accords-scripts:location}/scripts/cords_user.xml
  ${accords-scripts:location}/scripts/co-resolver
  ${accords-scripts:location}/scripts/co-start
  ${accords-scripts:location}/scripts/co-status
  ${accords-scripts:location}/scripts/co-stop
  ${accords-scripts:location}/scripts/run-azprocci
  ${accords-scripts:location}/scripts/run-broker
  ${accords-scripts:location}/scripts/run-coees
  ${accords-scripts:location}/scripts/run-coes
  ${accords-scripts:location}/scripts/run-coips
  ${accords-scripts:location}/scripts/run-comons
  ${accords-scripts:location}/scripts/run-conets
  ${accords-scripts:location}/scripts/run-coobas
  ${accords-scripts:location}/scripts/run-cosacs
  ${accords-scripts:location}/scripts/run-coss
  ${accords-scripts:location}/scripts/run-ezvm
  ${accords-scripts:location}/scripts/run-fileserver
  ${accords-scripts:location}/scripts/run-onprocci
  ${accords-scripts:location}/scripts/run-osprocci
  ${accords-scripts:location}/scripts/run-parser
  ${accords-scripts:location}/scripts/run-procci
  ${accords-scripts:location}/scripts/run-publisher