From dd9782d20ef61d77eafff8b5418ed450dcf490e5 Mon Sep 17 00:00:00 2001 From: KaiFeng Wang Date: Thu, 3 Aug 2017 09:45:01 +0800 Subject: [PATCH] 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 --- doc/source/install/index.rst | 4 ++-- playbooks/install.yaml | 1 + releasenotes/notes/passing-no-proxy-32191c148442c57d.yaml | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/passing-no-proxy-32191c148442c57d.yaml diff --git a/doc/source/install/index.rst b/doc/source/install/index.rst index 25345995d..beab4e7c0 100644 --- a/doc/source/install/index.rst +++ b/doc/source/install/index.rst @@ -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 ---------- diff --git a/playbooks/install.yaml b/playbooks/install.yaml index cfffa2610..1dffbdd1f 100644 --- a/playbooks/install.yaml +++ b/playbooks/install.yaml @@ -27,3 +27,4 @@ environment: http_proxy: "{{ lookup('env','http_proxy') }}" https_proxy: "{{ lookup('env','https_proxy') }}" + no_proxy: "{{ lookup('env', 'no_proxy') }}" diff --git a/releasenotes/notes/passing-no-proxy-32191c148442c57d.yaml b/releasenotes/notes/passing-no-proxy-32191c148442c57d.yaml new file mode 100644 index 000000000..5ac8b100f --- /dev/null +++ b/releasenotes/notes/passing-no-proxy-32191c148442c57d.yaml @@ -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.