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

Documented handling of /pub in the context of proxy (bsc#1238827) #3779

Merged
merged 19 commits into from
Mar 20, 2025
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Documented handling of pub directory of the web server in the
context of proxy (bsc#1238827)
- Added instructions for Server and Proxy installation on SUSE Linux
Enterprise Server 15 SP7 to Installation and Upgrade Guide
- Changed server host OS requirement for Uyuni to openSUSE Leap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ endif::[]
*** xref:client-proxy.adoc[Client Registration to a Proxy]
**** xref:client-proxy-webui.adoc[Register to a Proxy With the Web UI]
**** xref:client-proxy-cli.adoc[Register to a Proxy With CLI]
**** xref:client-proxy-script.adoc[Register to a Proxy With a Script]
*** xref:clients-pubcloud.adoc[Public Cloud Clients]
**** xref:automatic-client-registration.adoc[Automatic Registration of Clients Created by Terraform]
** xref:client-upgrades.adoc[Client Upgrades]
Expand Down
71 changes: 71 additions & 0 deletions modules/client-configuration/pages/client-proxy-script.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[[script-client-proxy]]
= Register Clients to a Proxy with a Bootstrap Script


You can register clients through the {productname} Proxy with a bootstrap script.
This is done almost the same way as registering clients directly with the {productname} Server.

You create the bootstrap script in the {productname} Server container with the [command]``mgr-bootstrap`` command line tool.
[command]``mgr-bootstrap`` requires some parameters such as the fully qualified domain name (FQDN) of the proxy, activation keys, or GPG keys.
These parameters depend on your specific setup, but the FQDN of the proxy is mandatory.

The bootstrap script then deploys all necessary information to the clients.



.Procedure: Registering Clients to a Proxy with a Bootstrap Script

. Create a client activation key on the {productname} Server using the {webui}.
For more information, see xref:client-configuration:activation-keys.adoc[].
. On the container host of the server, start a terminial in the container:

+

[source,shell]
----
mgrctl term
----

+

--
.. In the container, to create the bootstrap script, execute the [command]``mgr-bootstrap`` command, for example, with these options:

+

[source,shell]
----
mgr-bootstrap --hostname=MLM_PROXY --activation-keys=ACTIVATION_KEY \
--script bootstrap-MLM_PROXY.sh
----

+

Replace [literal]``MLM_PROXY`` with the host name of your proxy.

+
With the [option]``--script`` option you save the bootstrap script with a descriptive name.
If needed, use additional command line options to customize your bootstrap script.
To view available options type [command]``mgr-bootstrap --help`` from the command line.

.. OPTIONAL: Edit the resulting bootstrap script.
--

. Execute the bootstrap script.
There are two options:

+

* Transfer the script to the client and run it directly on the clients.
Alternatively, because the proxy forwards requests to the server, the client can download it from http://MLM_PROXY/pub/bootstrap-MLM_PROXY.sh.
Replace [literal]``MLM_PROXY`` with the host name of your proxy.

* Execute the script from the proxy with [command]``ssh``.
Replace [literal]``MLM_PROXY`` with the host name of the proxy and [systemitem]`` <client.example.com>`` with the host name of the client:

+

[source,shell]
----
cat /srv/www/htdocs/pub/bootstrap/bootstrap-MLM_PROXY.sh | ssh root@<client.example.com> /bin/bash
----
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ zypper in helm mgrpxy
////


=== Using a Custom Container Image for a Service
== Use a Custom Container Image for a Service

By default, the {productname} Proxy suite is configured to use the same image version and registry path for each of its services.
However, it is possible to override the default values for a specific service using the install parameters ending with [literal]``-tag`` and [literal]``-image``.
Expand Down
Loading