[buildout]
parts =
  switch_softwaretype

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

[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
default = $${instance-base-srslte:rendered}

[instance-base-srslte]
recipe = slapos.recipe.template:jinja2
template = ${template-srslte:output}
rendered = $${buildout:directory}/template-base-srslte.cfg
extensions = jinja2.ext.do
context = key develop_eggs_directory buildout:develop-eggs-directory
          key eggs_directory buildout:eggs-directory
          key slapparameter_dict slap-configuration:configuration
          raw buildout_bin ${buildout:bin-directory}
          raw monitor_template_output ${monitor-template:output}
          raw config_drb_template ${config-drb:target}
          raw config_enb_template ${config-enb:target}
          raw config_epc_template ${config-epc:target}
          raw config_mbms_template ${config-mbms:target}
          raw config_rr_template ${config-rr:target}
          raw config_sib_template ${config-sib:target}
          raw config_ue_template ${config-ue:target}
          raw config_user_db_template ${config-user_db:target}
          raw srsenb_bin ${srsLTE:location}/usr/local/bin/srsenb
          raw srsepc_bin ${srsLTE:location}/usr/local/bin/srsepc
mode = 0644

[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
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}
