SUSE Multi-Linux Manager Proxy Deployment on openSUSE Tumbleweed
本指南概述了 SUSE Multi-Linux Manager 5.2 代理的部署过程。本指南假定您已成功部署 SUSE Multi-Linux Manager 5.2 服务器。要成功完成部署,请执行以下操作:
-
查看硬件要求。
-
Install openSUSE Tumbleweed on a bare-metal machine.
-
将代理作为 Salt 受控端进行引导。
-
生成代理配置。
-
将服务器中的代理配置传输到代理
-
使用代理配置将 Salt 受控端作为代理注册到 SUSE Multi-Linux Manager。
|
代理容器主机支持的操作系统
The supported operating system for the container host is openSUSE Tumbleweed.
|
1. 代理的硬件要求
下表列出了部署 SUSE Multi-Linux Manager 代理所要满足的硬件要求。
| Hardware | Details | Recommendation |
|---|---|---|
CPU |
x86-64, ARM |
Minimum 2 dedicated 64-bit CPU cores |
RAM |
Minimum |
2 GB |
Recommended |
8 GB |
|
Disk Space |
|
Minimum 40 GB |
|
Minimum 100 GB, Storage requirements should be calculated for the number of ISO distribution images, containers, and bootstrap repositories you will use. |
2. 容器主机一般要求
有关一般要求,请参见一般要求。
An openSUSE Tumbleweed server should be installed from installation media. This procedure is described below.
3. 容器主机要求
有关 CPU、RAM 和存储要求,请参见硬件要求。
|
为了保证客户端能够解析 FQDN 域名,容器化服务器和主机都必须连接到正常运行的 DNS 服务器。此外,必须确保反向查找的配置正确。 |
4. 配置自定义永久性存储
This step is optional. However, if custom persistent storage is required for your infrastructure, use the mgr-storage-proxy tool.
For more information, see mgr-storage-proxy --help. This tool simplifies creating the container storage and Squid cache volumes.
如下所示使用命令:
mgr-storage-proxy <存储磁盘设备>
例如:
mgr-storage-proxy /dev/nvme1n1
|
This command will create the persistent storage volumes at 有关详细信息,请参见 |
5. 将代理主机作为受控端进行引导
-
选择。
-
填写代理主机的相关字段。
-
从下拉列表中选择上一步骤中创建的激活密钥。
-
单击 + 引导。
-
等待引导过程成功完成。检查 Salt 菜单,确认 Salt 受控端密钥已列出并已接受。
-
重引导代理主机。
-
从系统列表中选择主机,并在所有事件完成后再次触发重引导以完成初始配置。
-
从系统列表中选择主机,并应用所有补丁以将其更新。
-
重引导代理主机。
6. 生成代理配置
SUSE Multi-Linux Manager 代理的配置归档由 SUSE Multi-Linux Manager 服务器生成。每个附加代理都需要自身的配置归档。
|
在生成此代理配置之前,必须将 SUSE Multi-Linux Manager 代理的容器主机作为 Salt 受控端注册到 SUSE Multi-Linux Manager 服务器。 |
您将执行以下任务:
-
生成代理配置文件。
-
将配置传输到代理。
-
Start the Proxy with the
mgrpxycommand.
-
在 Web UI 中,导航到,然后填写所需数据:
-
In the
Proxy FQDNfield type fully qualified domain name for the proxy. -
In the
Parent FQDNfield type fully qualified domain name for the SUSE Multi-Linux Manager Server or another SUSE Multi-Linux Manager Proxy. -
In the
Proxy SSH portfield type SSH port on which SSH service is listening on SUSE Multi-Linux Manager Proxy. Recommended is to keep default 8022. -
In the
Max Squid cache size [MB]field type maximal allowed size for Squid cache. Typically this should be at most 60% of available storage for the containers. In theSSL certificateselection list choose if new server certificate should be generated for SUSE Multi-Linux Manager Proxy or an existing one should be used. You can consider generated certificates as SUSE Multi-Linux Manager builtin (self signed) certificates.然后根据所做的选择提供用于生成新证书的签名 CA 证书的路径,或者要用作代理证书的现有证书及其密钥的路径。
The CA certificates generated on the server are stored in the
/var/lib/containers/storage/volumes/root/_data/ssl-builddirectory.有关现有或自定义证书的详细信息以及企业和中间证书的概念,请参见 导入 SSL 证书。
-
单击 生成 以在 SUSE Multi-Linux Manager 服务器中注册新代理 FQDN,并生成包含容器主机细节的配置归档。
-
片刻之后,系统会显示文件可供下载。请将此文件保存在本地。
7. 传输代理配置
Web UI 将生成配置归档。需要在代理容器主机上提供此归档。
-
Copy the files to the Proxy host:
scp config.tar.gz <代理 FQDN>:/root
-
使用以下命令安装代理:
mgrpxy install config.tar.gz
8. 启动 SUSE Multi-Linux Manager 5.2 代理
Container can now be started with the mgrpxy command:
-
调用以下命令启动代理:
mgrpxy start
-
调用以下命令检查容器状态:
mgrpxy status
Five SUSE Multi-Linux Manager Proxy containers should be present and should be part of the
proxy-podcontainer pod:-
proxy-salt-broker
-
proxy-httpd
-
proxy-tftpd
-
proxy-squid
-
proxy-ssh
-
9. 安装用于容器的 Uyuni 工具
Go to .
Install the
uyuni-toolspackage.
有关 Uyuni 容器实用程序的详细信息,请参见 Uyuni 容器实用程序。
9.1. 为服务使用自定义容器映像
By default, the SUSE Multi-Linux Manager Proxy suite is set 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 -tag and -image.
例如,可以按如下方式使用此命令:
mgrpxy install --httpd-tag 0.1.0 --httpd-image registry.opensuse.org/uyuni/proxy-httpd /path/to/config.tar.gz
It adjusts the configuration file for the httpd service, where registry.opensuse.org/uyuni/proxy-httpds is the image to use and 0.1.0 is the version tag, before restarting it.
要重置为默认值,请再次运行 install 命令但不要指定这些参数:
mgrpxy install /path/to/config.tar.gz
此命令首先将所有服务的配置重置为全局默认值,然后重新装载配置。