[buildout]
parts =
  switch-softwaretype

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

[slap-configuration]
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}

[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
RootSoftwareInstance = $${:default}
default = $${:theia}
theia = theia:rendered

[theia]
recipe = slapos.recipe.template:jinja2
template = ${instance-theia:output}
rendered = $${buildout:directory}/instance-theia.cfg
mode = 0644
context =
  jsonkey default_parameter_dict :default-parameters
  key parameter_dict slap-configuration:configuration
  key root_title slap-configuration:root-instance-title
  key ipv6_random slap-configuration:ipv6-random
  key ipv4_random slap-configuration:ipv4-random
default-parameters =
  {
    "autorun": "running",
    "embedded-sr": null,
    "embedded-sr-type": null,
    "embedded-instance-parameters": "null",
    "frontend-name": "Theia Frontend",
    "frontend-sr": "$${:frontend-sr}",
    "frontend-sr-type": "RootSoftwareInstance",
    "frontend-guid": null,
    "additional-frontend-name":"Theia Additional Frontend",
    "additional-frontend-sr": "$${:frontend-sr}",
    "additional-frontend-sr-type": "RootSoftwareInstance",
    "additional-frontend-guid": null
  }
frontend-sr = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
