Skip to content

Commit abc26f1

Browse files
committed
(feat) Add proxy support to Tempest container
Add support for HTTP, HTTPS, and NO_PROXY environment variables in the Tempest container. This allows the container to work properly in environments that require proxy configuration for network access. The following proxy-related environment variables are now supported: - TEMPEST_HTTP_PROXY - TEMPEST_HTTPS_PROXY - TEMPEST_NO_PROXY Variables are configurable in kayobe-config .automtion.conf/config.sh
1 parent a7de3ab commit abc26f1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ansible/kayobe-automation-run-tempest.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@
139139
--env TEMPEST_CONF_OVERRIDES="$TEMPEST_CONF_OVERRIDES"
140140
--env TEMPEST_NO_PROXY_EXTRA
141141
--env RALLY_CONF_ENABLE_CREATE_TEMPEST_RESOURCES
142+
{% if lookup('env', 'TEMPEST_HTTP_PROXY') %}
143+
--env HTTP_PROXY="$TEMPEST_HTTP_PROXY"
144+
{% endif %}
145+
{% if lookup('env', 'TEMPEST_HTTPS_PROXY') %}
146+
--env HTTPS_PROXY="$TEMPEST_HTTPS_PROXY"
147+
{% endif %}
148+
{% if lookup('env', 'TEMPEST_NO_PROXY') %}
149+
--env NO_PROXY="$TEMPEST_NO_PROXY"
150+
{% endif %}
142151
{% if tempest_load_list_path is defined -%}
143152
-v {{ load_list_path_remote }}:/home/rally/tempest-load-list:rw
144153
{% endif -%}
@@ -162,6 +171,9 @@
162171
TEMPEST_OPENRC: "{{ lookup('env', 'TEMPEST_OPENRC') }}"
163172
TEMPEST_CONF_OVERRIDES: "{{ lookup('env', 'TEMPEST_CONF_OVERRIDES') }}"
164173
TEMPEST_NO_PROXY_EXTRA: "{{ lookup('env', 'TEMPEST_NO_PROXY_EXTRA') }}"
174+
TEMPEST_NO_PROXY: "{{ lookup('env', 'TEMPEST_NO_PROXY') }}"
175+
TEMPEST_HTTP_PROXY: "{{ lookup('env', 'TEMPEST_HTTP_PROXY') }}"
176+
TEMPEST_HTTPS_PROXY: "{{ lookup('env', 'TEMPEST_HTTPS_PROXY') }}"
165177
RALLY_CONF_ENABLE_CREATE_TEMPEST_RESOURCES: "{{ lookup('env', 'RALLY_CONF_ENABLE_CREATE_TEMPEST_RESOURCES') }}"
166178
no_log: "{{ rally_no_sensitive_log }}"
167179
register: docker_result

0 commit comments

Comments
 (0)