ansible-role-refstack-client/tasks/generate-tempestconf.sh.j2
Martin Kopec bfeab0700e Fix share_tempestconf_overrides usage
Use share_tempestconf_overrides value only when shared_file_system
is in refstack_target_programs, otherwise the variable contains
uncertain data. The commits wraps the variable to an if statement.

Change-Id: I0764c99d3c8f1a8fa36c8926e801ad1d0a60dbd2
2021-09-01 20:12:39 +00:00

25 lines
699 B
Django/Jinja

# Script to generate tempest.conf
set -ex
export PATH=$PATH:/usr/local/sbin:/usr/sbin
source .venv/bin/activate
source {{ source_credentials }}
printenv
discover-tempest-config \
--debug \
-v \
--non-admin \
--test-accounts {{ path_to_accounts_file }} \
--image {{ url_cirros_image }} \
{% if deployer_input is defined %}
--deployer-input {{ deployer_input }} \
{% endif %}
{% if 'shared_file_system' in refstack_target_programs %}
{{ share_tempestconf_overrides | join(' ') }} \
{% endif %}
{% if additional_tempestconf_params is defined %}
{{ additional_tempestconf_params }} \
{% endif %}
validation.run_validation true \
compute.allow_tenant_isolation true \
compute-feature-enabled.resize true