[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
domain = domain
tenantname = vifib
#userid = $${slap-parameter:userid}
password = $${slap-parameter:password}
#domain = $${slap-parameter:domain}
#tenantname = $${slap-parameter:tenantname}
openstack_url = http://beta.enocloud.com:5000/v2.0/
os-config = $${accordsdirectory:accords}/os_config.xml
listen-ip = $${slap-network-information:local-ipv4}

# Paths
accords-configuration-file = $${accordsdirectory:accords}/accords.ini
manifest-source = ${accords-manifest:target}
manifest-destination = $${accordsdirectory:accords}/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/

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

[copy-scripts]
recipe = slapos.cookbook:copyfilelist
target-directory = $${accordsdirectory:accords}
file-list =
  ${accords-scripts:location}/scripts/accords
  ${accords-scripts:location}/scripts/accords-config
  ${accords-scripts:location}/scripts/co-broker
  ${accords-scripts:location}/scripts/co-check
  ${accords-scripts:location}/scripts/co-command
  ${accords-scripts:location}/scripts/co-parser
  ${accords-scripts:location}/scripts/co-platform
  ${accords-scripts:location}/scripts/co-provider
  ${accords-scripts:location}/scripts/co-provision
  ${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-coips
  ${accords-scripts:location}/scripts/run-comons
  ${accords-scripts:location}/scripts/run-conagios
  ${accords-scripts:location}/scripts/run-conets
  ${accords-scripts:location}/scripts/run-coobas
  ${accords-scripts:location}/scripts/run-cool
  ${accords-scripts:location}/scripts/run-copaas
  ${accords-scripts:location}/scripts/run-cops
  ${accords-scripts:location}/scripts/run-cosacs
  ${accords-scripts:location}/scripts/run-cosched
  ${accords-scripts:location}/scripts/run-coss
  ${accords-scripts:location}/scripts/run-dcprocci
  ${accords-scripts:location}/scripts/run-ezvm
  ${accords-scripts:location}/scripts/run-fileserver
  ${accords-scripts:location}/scripts/run-jpaasprocci
  ${accords-scripts:location}/scripts/run-onprocci
  ${accords-scripts:location}/scripts/run-osocciprocci
  ${accords-scripts:location}/scripts/run-osprocci
  ${accords-scripts:location}/scripts/run-paasprocci
  ${accords-scripts:location}/scripts/run-paprocci
  ${accords-scripts:location}/scripts/run-parser
  ${accords-scripts:location}/scripts/run-procci
  ${accords-scripts:location}/scripts/run-publisher
  ${accords-scripts:location}/scripts/openssl.cnf
  ${accords-scripts:location}/scripts/run-slam
