diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-02-11 11:42:59 -0500 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2016-04-22 15:28:53 -0400 |
commit | 1d467d5a34f446459dc5035b1ec7210fecce9931 (patch) | |
tree | 2f7bcea8ef45bee7dc6a96e43fb286e2903d5dad /roles/openshift_master_facts | |
parent | 7cb05911b4214bfb75abf65dd19a55f73fe09982 (diff) | |
download | openshift-1d467d5a34f446459dc5035b1ec7210fecce9931.tar.gz openshift-1d467d5a34f446459dc5035b1ec7210fecce9931.tar.bz2 openshift-1d467d5a34f446459dc5035b1ec7210fecce9931.tar.xz openshift-1d467d5a34f446459dc5035b1ec7210fecce9931.zip |
Add global proxy configuration
Configures HTTP_PROXY, HTTPS_PROXY, NO_PROXY for master and docker services.
Configugres BuildDefaults Admission controller for master to automatically
insert proxy environment configuration into build environments.
To use set at least these variables
- openshift_http_proxy
- openshift_https_proxy
NO_PROXY entries will automatically be configured for hostnames of all openshift
hosts. You may specify additional NO_PROXY hosts or patterns by setting
`openshift_no_proxy`
If you wish to disable automatic generation of NO_PROXY hosts you may set
`openshift_generate_no_proxy_hosts` to False.
If you wish to have different builddefaults proxy configuration than baseline
proxy configuration set these variables
- openshift_builddefaults_http_proxy
- openshift_builddefaults_https_proxy
- openshift_builddefaults_no_proxy
- openshift_builddefaults_git_http_proxy
- openshift_builddefaults_git_https_proxy
Diffstat (limited to 'roles/openshift_master_facts')
-rw-r--r-- | roles/openshift_master_facts/vars/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_master_facts/vars/main.yml b/roles/openshift_master_facts/vars/main.yml new file mode 100644 index 000000000..3b0ee2761 --- /dev/null +++ b/roles/openshift_master_facts/vars/main.yml @@ -0,0 +1,14 @@ +builddefaults_yaml: + BuildDefaults: + configuration: + apiVersion: v1 + kind: BuildDefaultsConfig + gitHTTPProxy: "{{ openshift.master.builddefaults_git_http_proxy | default(omit, true) }}" + gitHTTPSProxy: "{{ openshift.master.builddefaults_git_https_proxy | default(omit, true) }}" + env: + - name: HTTP_PROXY + value: "{{ openshift.master.builddefaults_http_proxy | default(omit, true) }}" + - name: HTTPS_PROXY + value: "{{ openshift.master.builddefaults_https_proxy | default(omit, true) }}" + - name: NO_PROXY + value: "{{ openshift.master.builddefaults_no_proxy | default(omit, true) | join(',') }}"
\ No newline at end of file |