Skip to content

Commit

Permalink
Move vSphere/OpenStack socks5 proxy NOTE to partial
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Oct 26, 2023
1 parent cfe98b3 commit 0059b62
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
17 changes: 1 addition & 16 deletions docs/modules/ROOT/pages/how-tos/vsphere/install.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,7 @@ include::partial$install/prepare-syn-config.adoc[]

=== Provision the cluster

[NOTE]
====
The steps in this section must be run on a host which can reach the vSphere API.
If you can't reach the vSphere API directly, 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 vSphere 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
====
include::partial$install/socks5-proxy.adoc[]

. Trust the vSphere CA certificate
+
Expand Down
24 changes: 24 additions & 0 deletions docs/modules/ROOT/partials/install/socks5-proxy.adoc
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
====

0 comments on commit 0059b62

Please sign in to comment.