Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Created July 14, 2017 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbielawa/ab98b0ba45742c573e551298dee36918 to your computer and use it in GitHub Desktop.
Save tbielawa/ab98b0ba45742c573e551298dee36918 to your computer and use it in GitHub Desktop.

Parameter Sequences and Intended results

Read as follows:

1 or more openshift_<proxy_var> names

Environment variable names that gets set, followed by their values.

if no value, then it's what is set in the inventory.

  • +(auto stuff) - Auto generated list of cluster hostnames, .cluster.local
  • .svc the .svc domain required in OCP 3.6

Default

openshift_generate_no_proxy_hosts=True

nothing - no openshift_no_proxy or openshift_http(s)_proxy or openshift_generate_no_proxy_hosts parameters set: NO_PROXY =.svc and default in cluster stuff +(auto stuff)

http_proxy: HTTP_PROXY NO_PROXY =.svc and default in cluster stuff +(auto stuff)

https_proxy: HTTPS_PROXY NO_PROXY =.svc and default in cluster stuff +(auto stuff)

no_proxy:

(env variable NO_PROXY is openshift_no_proxy PLUS the auto generated .svc, .cluster.local, and cluster hostnames

NO_PROXY +.svc and default in cluster stuff +(auto stuff)

https_proxy http_proxy HTTP_PROXY HTTPS_PROXY

no_proxy wasn't set, but we auto set it to the defaults

NO_PROXY =.svc and default in cluster stuff +(auto stuff)

http_proxy no_proxy HTTP_PROXY

no proxy was set, add in the defaults

NO_PROXY +.svc and default in cluster stuff +(auto stuff)

https_proxy no_proxy HTTPS_PROXY NO_PROXY +.svc and default in cluster stuff +(auto stuff)

http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY +.svc and default in cluster stuff +(auto stuff)


Second Case (openshift_generate_no_proxy_hosts=False)

nothing: NO_PROXY: =.svc and default in cluster stuff

http_proxy: HTTP_PROXY NO_PROXY: =.svc and default in cluster stuff

https_proxy: HTTPS_PROXY NO_PROXY: =.svc and default in cluster stuff

no_proxy: NO_PROXY: +.svc and default in cluster stuff

https_proxy http_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY: =.svc and default in cluster stuff

http_proxy no_proxy HTTP_PROXY NO_PROXY: +.svc and default in cluster stuff

https_proxy no_proxy HTTPS_PROXY NO_PROXY: +.svc and default in cluster stuff

http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY: +.svc and default in cluster stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment