-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move vSphere/OpenStack socks5 proxy NOTE to partial
- Loading branch information
Showing
2 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
:provider-display: UNKNOWN | ||
ifeval::["{provider}" == "vsphere"] | ||
:provider-display: vSphere | ||
endif::[] | ||
ifeval::["{provider}" == "openstack"] | ||
:provider-display: OpenStack | ||
endif::[] | ||
|
||
[NOTE] | ||
==== | ||
The steps in this section must be run on a host which can reach the {provider-display} API. | ||
If you can't reach the {provider-display} API directly, but a SSH jumphost is available, you can setup a SOCKS5 proxy with the following commands: | ||
[source,bash] | ||
---- | ||
export JUMPHOST_FQDN=<jumphost fqdn or alias from your SSH config> <1> | ||
ssh -D 12000 -q -f -N ${JUMPHOST_FQDN} <2> | ||
export https_proxy=socks5://localhost:12000 <3> | ||
export CURL_OPTS="-xsocks5h://localhost:12000" | ||
---- | ||
<1> The FQDN or SSH alias of the host which can reach the {provider-display} API | ||
<2> This command expects that your SSH config is setup so that `ssh ${JUMPHOST_FQDN}` works without further configuration | ||
<3> The `openshift-install` tool respects the `https_proxy` environment variable | ||
==== |