Enable usage of no_proxy on install

http_proxy and https_proxy are passed as enviroment variable, while
no_proxy is not taken into account during bifrost installation.

This patch add no_proxy environment variable to Ansible.

Change-Id: I5eaaf86ff08ca7189aa63b0a709be48e189b5f7c
Closes-Bug: #1708322
This commit is contained in:
KaiFeng Wang 2017-08-03 09:45:01 +08:00 committed by KaiFeng Wang
parent bc0a12dfff
commit dd9782d20e
3 changed files with 8 additions and 2 deletions

View File

@ -176,8 +176,8 @@ to set ``create_image_via_dib`` to ``true``.
``/etc/httpboot/ipa.initramfs``.
If you are running the installation behind a proxy, export the
environment variables ``http_proxy`` and ``https_proxy`` so that
ansible will use these proxy settings.
environment variables ``http_proxy``, ``https_proxy`` and ``no_proxy``
so that ansible will use these proxy settings.
Installing
----------

View File

@ -27,3 +27,4 @@
environment:
http_proxy: "{{ lookup('env','http_proxy') }}"
https_proxy: "{{ lookup('env','https_proxy') }}"
no_proxy: "{{ lookup('env', 'no_proxy') }}"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Supports passing ``no_proxy`` environment variable to Ansible, users
can use ``no_proxy`` to exclude specified hosts from using proxy.