diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-07-25 14:50:53 +0200 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-07-28 09:44:18 +0200 |
commit | 88238aa357e0115452b290d9b9e854e15dfcaaf6 (patch) | |
tree | 47307f9f33ec5ca882b8aa05cc218e13a544943d /roles/openshift_node/tasks/config/configure-proxy-settings.yml | |
parent | 4a442d87006bdd535eb5035d122a6b5226555da2 (diff) | |
download | openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.gz openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.bz2 openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.xz openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.zip |
move common tasks to a single file included by both systemd_units.yml
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 |