diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-09-13 10:30:15 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-09-13 15:14:05 -0400 |
commit | 17ebe5c355866f51df12a1a85ad35c07dbab6dad (patch) | |
tree | aed4c0327e37baf103081fe8fb52f99605860dc7 /roles | |
parent | e1ce7d7b305cf5dc2cd7077a462416155fc89be7 (diff) | |
download | openshift-17ebe5c355866f51df12a1a85ad35c07dbab6dad.tar.gz openshift-17ebe5c355866f51df12a1a85ad35c07dbab6dad.tar.bz2 openshift-17ebe5c355866f51df12a1a85ad35c07dbab6dad.tar.xz openshift-17ebe5c355866f51df12a1a85ad35c07dbab6dad.zip |
Define proxy settings for node services
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_node/tasks/systemd_units.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/systemd_units.yml b/roles/openshift_node/tasks/systemd_units.yml index 025cb567e..38dc98c07 100644 --- a/roles/openshift_node/tasks/systemd_units.yml +++ b/roles/openshift_node/tasks/systemd_units.yml @@ -48,6 +48,23 @@ notify: - restart node +- name: Configure Proxy Settings + lineinfile: + dest: /etc/sysconfig/{{ openshift.common.service_type }}-node + regexp: "{{ item.regex }}" + line: "{{ item.line }}" + create: true + with_items: + - regex: '^HTTP_PROXY=' + line: "HTTP_PROXY={{ openshift.common.http_proxy }}" + - regex: '^HTTPS_PROXY=' + line: "HTTPS_PROXY={{ openshift.common.https_proxy }}" + - regex: '^NO_PROXY=' + line: "NO_PROXY={{ openshift.common.no_proxy | join(',') }}" + when: "{{ openshift.common.http_proxy is defined and openshift.common.http_proxy != '' }}" + notify: + - restart node + - name: Reload systemd units command: systemctl daemon-reload when: openshift.common.is_containerized | bool and (install_node_result | changed or install_ovs_sysconfig | changed or install_node_dep_result | changed) |