[buildout]
parts = switch-softwaretype
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}

[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}

[jinja2-template-base]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
extra-context =
context =
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key ipv6_set slap-configuration:ipv6
    key ipv4_set slap-configuration:ipv4
    key slapparameter_dict slap-configuration:configuration
    key computer_id slap-configuration:computer
    raw logrotate_cfg {{ template_logrotate_base }}
    raw dash_binary {{ dash_location }}/bin/dash
    raw bin_directory {{ bin_directory }}
    raw openssl_location {{ openssl_location }}
    ${:extra-context}

[dynamic-template-gateone-parameters]
bin-directory = {{ bin_directory }}
#python-executable  = 
readline-location = {{ readline_location }}
dtach-location = {{ dtach_location }}
gateone-location = {{ gateone_location}}
gateone-bin = {{ gateone_bin }}
nginx-location = {{ nginx_location}}
template-ngnix-conf = {{ template_nginx_conf }}

[dynamic-template-gateone]
< = jinja2-template-base
template = {{ template_gateone }}
filename = instance-gateone.cfg
extensions = jinja2.ext.do
extra-context =
    section parameter_dict dynamic-template-gateone-parameters

[switch-softwaretype]
recipe = slapos.cookbook:softwaretype

default = ${dynamic-template-gateone:rendered}
gateone = ${:default}
