Skip to content

Commit

Permalink
Add option set new HTTP proxy as default (#3510)
Browse files Browse the repository at this point in the history
Co-authored-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Lennonka and Gauravtalreja1 authored Jan 20, 2025
1 parent fd88b88 commit 53eb5e8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
26 changes: 17 additions & 9 deletions guides/common/modules/proc_adding-a-default-http-proxy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-adding-a-default-
. Optional: If authentication is required, in the *Username* field, enter the username to authenticate with.
. Optional: If authentication is required, in the *Password* field, enter the password to authenticate with.
. To test connection to the proxy, click *Test Connection*.
ifdef::katello,orcharhino,satellite[]
. Select the *Default content HTTP proxy* option to set the new HTTP proxy as default for content synchronization.
endif::[]
. Click *Submit*.
. In the {ProjectWebUI}, navigate to *Administer* > *Settings*, and click the *Content* tab.
. Set the *Default HTTP Proxy* setting to the created HTTP proxy.

[id="cli-adding-a-default-http-proxy_{context}"]
.CLI procedure
Expand All @@ -27,21 +28,28 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-adding-a-default-
----
# unset http_proxy https_proxy no_proxy
----
. Add an HTTP proxy entry to {Project}:
ifdef::katello,orcharhino,satellite[]
. Add an HTTP proxy entry to {Project} and set the HTTP proxy as default for content synchronization:
+
[options="nowrap" subs="+quotes"]
----
$ hammer http-proxy create \
--name=_My_HTTP_Proxy_ \
--username=_My_HTTP_Proxy_User_Name_ \
--password=_My_HTTP_Proxy_Password_ \
--url http://_http-proxy.example.com_:8080
--url http://_http-proxy.example.com_:8080 \
--content-default-http-proxy true
----
. Configure {Project} to use this HTTP proxy by default:
endif::[]
ifndef::katello,orcharhino,satellite[]
. Add an HTTP proxy entry to {Project}:
+
[options="nowrap" subs="+quotes,attributes"]
[options="nowrap" subs="+quotes"]
----
$ hammer settings set \
--name=content_default_http_proxy \
--value=__My_HTTP_Proxy__
$ hammer http-proxy create \
--name=_My_HTTP_Proxy_ \
--username=_My_HTTP_Proxy_User_Name_ \
--password=_My_HTTP_Proxy_Password_ \
--url http://_http-proxy.example.com_:8080
----
endif::[]
3 changes: 3 additions & 0 deletions guides/common/modules/proc_adding-an-http-proxy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-adding-an-http-pr
. In the *URL* field, enter the URL for the HTTP proxy, including the port number.
. If your HTTP proxy requires authentication, enter a *Username* and *Password*.
. Optional: In the *Test URL* field, enter the HTTP proxy URL, then click *Test Connection* to ensure that you can connect to the HTTP proxy from {Project}.
. Optional: Select the *Default content HTTP proxy* option to set the new HTTP proxy as default for content synchronization.
. Click the *Locations* tab and add a location.
. Click the *Organization* tab and add an organization.
. Click *Submit*.
Expand All @@ -34,6 +35,8 @@ $ hammer http-proxy create \
--url _http-proxy.example.com:8080_
----
+
Optional: To set the HTTP proxy as default for content synchronization, add the `--content-default-http-proxy true` option.
+
If your HTTP proxy requires authentication, add the `--username _My_User_Name_` and `--password _My_Password_` options.

ifndef::orcharhino[]
Expand Down

0 comments on commit 53eb5e8

Please sign in to comment.