diff --git a/guides/common/modules/proc_adding-a-default-http-proxy.adoc b/guides/common/modules/proc_adding-a-default-http-proxy.adoc index 60c3061500..ccac4be718 100644 --- a/guides/common/modules/proc_adding-a-default-http-proxy.adoc +++ b/guides/common/modules/proc_adding-a-default-http-proxy.adoc @@ -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 @@ -27,7 +28,8 @@ 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"] ---- @@ -35,13 +37,19 @@ $ 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::[] \ No newline at end of file diff --git a/guides/common/modules/proc_adding-an-http-proxy.adoc b/guides/common/modules/proc_adding-an-http-proxy.adoc index 09e0ece2b0..691e006ef4 100644 --- a/guides/common/modules/proc_adding-an-http-proxy.adoc +++ b/guides/common/modules/proc_adding-an-http-proxy.adoc @@ -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*. @@ -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[]