Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option set new HTTP proxy as default #3510

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Lennonka marked this conversation as resolved.
Show resolved Hide resolved

[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
Loading