[buildout]
parts =
  switch_softwaretype

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

[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 = instance-default:output

[instance-default]
recipe = slapos.recipe.template:jinja2
url = ${template-default:output}
output = $${buildout:directory}/instance-default.cfg
context =
  import json json
  jsonkey default_parameter_dict :default-parameters
  section slap_connection slap-connection
  key slapparameter_dict slap-configuration:configuration
  key partition_ipv6 slap-configuration:ipv6-random
  key partition_ipv4 slap-configuration:ipv4-random
default-parameters =
  {
    "node-quantity": 1,
    "test-suite-master-url": "",
    "instance-dict": "",
    "software-path-list": ["https://lab.nexedi.com/nexedi/slapos/raw/1.0.333/software/seleniumrunner/software.cfg"],
    "keep-log-days": 15
  }
