diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-07-31 13:17:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-31 13:17:59 -0400 |
commit | fa205d4d676d831ebf3f93c867990c977437d4f2 (patch) | |
tree | 8ede6ec8a112c39ef5f52aff414d7fb7f873c989 /roles/openshift_node/tasks/config/configure-proxy-settings.yml | |
parent | ae0da816c639c3740613e5b6f44b02d1ca96f405 (diff) | |
parent | 88238aa357e0115452b290d9b9e854e15dfcaaf6 (diff) | |
download | openshift-fa205d4d676d831ebf3f93c867990c977437d4f2.tar.gz openshift-fa205d4d676d831ebf3f93c867990c977437d4f2.tar.bz2 openshift-fa205d4d676d831ebf3f93c867990c977437d4f2.tar.xz openshift-fa205d4d676d831ebf3f93c867990c977437d4f2.zip |
Merge pull request #4900 from ingvagabund/move-common-openshift-node-systemd-unit-tasks-into-separete-files
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_node/tasks/config/configure-proxy-settings.yml')
-rw-r--r-- | roles/openshift_node/tasks/config/configure-proxy-settings.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/config/configure-proxy-settings.yml b/roles/openshift_node/tasks/config/configure-proxy-settings.yml new file mode 100644 index 000000000..d60794305 --- /dev/null +++ b/roles/openshift_node/tasks/config/configure-proxy-settings.yml @@ -0,0 +1,17 @@ +--- +- 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 | default('') }}" + - regex: '^HTTPS_PROXY=' + line: "HTTPS_PROXY={{ openshift.common.https_proxy | default('') }}" + - regex: '^NO_PROXY=' + line: "NO_PROXY={{ openshift.common.no_proxy | default([]) }},{{ openshift.common.portal_net }},{{ hostvars[groups.oo_first_master.0].openshift.master.sdn_cluster_network_cidr }}" + when: ('http_proxy' in openshift.common and openshift.common.http_proxy != '') + notify: + - restart node |