You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
655 B
15 lines
655 B
{% if inventory_hostname is match(".*[.]3scale[.]net") and (threescale_cicd_apicast_sandbox_endpoint|default("")|length > 0 or threescale_cicd_apicast_production_endpoint|default("")|length > 0) %}
|
|
{% set deployment_type = "self_managed" %}
|
|
{% else %}
|
|
{% set deployment_type = "hosted" %}
|
|
{% endif %}
|
|
{%
|
|
set payload = [
|
|
'access_token=' ~ threescale_cicd_access_token|urlencode,
|
|
'name=' ~ threescale_cicd_api_name|urlencode,
|
|
'deployment_option=' ~ deployment_type|urlencode,
|
|
'system_name=' ~ threescale_cicd_api_system_name|urlencode,
|
|
'backend_version=' ~ threescale_cicd_api_backend_version|urlencode
|
|
]
|
|
%}
|
|
{{ payload|join("&") }}
|