An Ansible module that enables Continuous Delivery with Red Hat 3scale API Management Platform (3scale AMP)
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.
 
 
 

22 lines
1.0 KiB

{# Select the target CI platform using the THREESCALE_POOL environment variable #}
{% set pool = lookup('env', 'THREESCALE_POOL') %}
{% set test_environment = test_environment[pool|int] %}
[all:vars]
ansible_connection=local
{% if 'apicast_staging_domain' in test_environment.threescale %}
apicast_staging_domain={{ test_environment.threescale.apicast_staging_domain }}
{% endif %}
{% if 'apicast_production_domain' in test_environment.threescale %}
apicast_production_domain={{ test_environment.threescale.apicast_production_domain }}
{% endif %}
[threescale]
{{ test_environment.threescale.admin_portal }}
[threescale:vars]
threescale_cicd_access_token={{ test_environment.threescale.access_token }}
threescale_cicd_sso_issuer_endpoint=https://{{ test_environment.sso.client_id }}:{{ test_environment.sso.client_secret }}@{{ test_environment.sso.host }}/auth/realms/{{ test_environment.sso.realm }}
{% if 'wildcard_domain' in test_environment.threescale %}
threescale_cicd_wildcard_domain={{ test_environment.threescale.wildcard_domain }}
{% endif %}