Skip to content

Commit

Permalink
Update CLI procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennonka committed Jan 13, 2025
1 parent 9a53bf8 commit b3b8e09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 13 additions & 6 deletions guides/common/modules/proc_adding-a-default-http-proxy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ endif::[]
----
# 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"]
----
Expand All @@ -37,12 +38,18 @@ $ hammer http-proxy create \
--username=_My_HTTP_Proxy_User_Name_ \
--password=_My_HTTP_Proxy_Password_ \
--url http://_http-proxy.example.com_:8080
--content_default_http_proxy
----
. 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::[]
2 changes: 2 additions & 0 deletions guides/common/modules/proc_adding-an-http-proxy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ To use the CLI instead of the {ProjectWebUI}, see the xref:cli-adding-an-http-pr
$ hammer http-proxy create \
--name _My_HTTP_Proxy_ \
--url _http-proxy.example.com:8080_
--content_default_http_proxy <1>
----
<1> Optional: Set the HTTP proxy as default for content synchronization.
+
If your HTTP proxy requires authentication, add the `--username _My_User_Name_` and `--password _My_Password_` options.

Expand Down

0 comments on commit b3b8e09

Please sign in to comment.