SCHEME=https
ADMIN_USER=<%= properties.cf.admin_user %>
ADMIN_PASSWORD=<%= properties.cf.admin_password %>
DOMAIN=<%= properties.domain %>
APP_DOMAIN=<%= properties.app_domains[0] %>
CF_ORG=<%= properties.org %>
CF_SPACE=<%= properties.space %>
CF_TARGET=https://api.<%= properties.app_domains[0] %>
CF_SKIP_SSL=<%= properties.ssl.skip_cert_verify %>
SECURITY_USER_NAME=<%= properties.security.user %>
SECURITY_USER_PASSWORD=<%= properties.security.password %>
APPLY_OPEN_SECURITY_GROUP=<%= properties.apply_open_security_group %>
ALLOW_PAID_SERVICE_PLANS=<%= properties.allow_paid_service_plans %>

{% for service_plan_form in context.service_plan_forms %}
{{ service_plan_form | plans_json(false, false) }}
{% endfor %}

{% for property in context.all_properties %}
{{ property | env_variable(false, false) }}
{% endfor %}
{% for package in context.packages if package.type == 'docker-bosh' %}
{{ package.name | upper }}_HOST=<%= properties.{{ package.name }}.host %>
{{ package.name | upper }}_HOSTS=<%= properties.{{ package.name }}.hosts %>
{% endfor %}
{% for package in context.packages if package.type == 'bosh-release' %}
{% for job in package.jobs %}
{% if job.is_static %}
{{ package.name | upper }}_{{ job.varname | upper }}_HOST=<%= properties.{{ package.name }}.{{ job.varname }}.host %>
{{ package.name | upper }}_{{ job.varname | upper }}_HOSTS=<%= properties.{{ package.name }}.{{ job.varname }}.hosts %>
{% endif %}
{% endfor %}
{% endfor %}
