#
# Deploy LTE instance
#
[buildout]
parts =
  directory
  lte

eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true


[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = ${slap_connection:computer_id}
partition = ${slap_connection:partition_id}
url = ${slap_connection:server_url}
key = ${slap_connection:key_file}
cert = ${slap_connection:cert_file}


[directory]
recipe = slapos.cookbook:mkdirectory
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log

[lte]
recipe = slapos.recipe.build:download
url = {{ buildout['directory'] }}/lte.sh
destination = ${directory:service}/lte.sh
mode = 0775
md5sum = 9de4c400d411083d8ecd8d03d62b97f0
