Registering openSUSE Leap Clients
This section contains information about registering clients running openSUSE operating systems. SUSE Manager supports openSUSE Leap 15 and openSUSE Leap 16 clients using Salt using Salt.
Bootstrapping is supported for starting openSUSE Leap clients and performing initial state runs such as setting repositories and performing profile updates.
1. 添加软件通道
Before you register openSUSE Leap clients to your SUSE Manager Server, you need to add the required software channels, and synchronize them.
The architectures currently supported are:
-
openSUSE Leap 15:
x86_64andaarch64. -
openSUSE Leap 16:
x86_64,aarch64,ppc64leands390x
For full list of supported products and architectures, see 支持的客户端和功能.
|
下面的小节中的说明通常默认使用 x86_64 体系结构。请根据情况将其替换为其他体系结构。 |
例如,使用 x86_64 体系结构时,您需要如下产品:
| OS Version | Product Name |
|---|---|
openSUSE Leap 16.0 |
openSUSE Leap 16.0 x86_64 |
openSUSE Leap 15.6 |
openSUSE Leap 15.6 x86_64 |
openSUSE Leap 15.5 |
openSUSE Leap 15.5 x86_64 |
openSUSE Leap 15.4 |
openSUSE Leap 15.4 x86_64 |
-
在 SUSE Manager Web UI 中,导航到。
-
使用搜索栏找到适用于您的客户端操作系统和体系结构的产品,然后选中相应产品。这样会自动选中所有必需的通道。此外,建议的所有通道也将选中,并且
包括建议项开关会打开。单击箭头以查看相关产品的完整列表,确保您需要的所有额外产品都已选中。 -
单击 添加产品 并等待产品完成同步。
或者,您也可以在命令提示符处添加通道。此过程所需的通道包括:
| OS Version | Base Channel |
|---|---|
openSUSE Leap 16.0 |
opensuse-leap-16.0 |
openSUSE Leap 15.6 |
opensuse-leap-15.6-pool |
openSUSE Leap 15.5 |
opensuse-leap-15.5-pool |
openSUSE Leap 15.4 |
opensuse-leap-15.4-pool |
-
在 SUSE Manager 容器主机的命令提示符处,以 root 身份命令添加相应的通道:
mgrctl exec -- mgr-sync add channel <channel_label_1> mgrctl exec -- mgr-sync add channel <channel_label_2> mgrctl exec -- mgr-sync add channel <channel_label_n> -
系统会自动启动同步。如果您要手动同步通道,请使用以下命令:
mgrctl exec -- mgr-sync sync --with-children <channel_name> -
确保同步已完成,然后再继续操作。
2. 检查同步状态
-
在 SUSE Manager Web UI 中,导航到,然后选择
产品选项卡。当同步产品时,此对话框会为每个产品显示一个完成栏。 -
或者,您可以导航到,然后单击与该储存库关联的通道。导航到
储存库选项卡,然后单击同步并选中同步状态。
-
To list available logs before tailing, on the container host, run the following command:
mgrctl exec ls /var/log/rhn/reposync/ -
在 SUSE Manager 容器主机的命令提示符处,以 root 身份检查通道日志文件的同步:
mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log -
每个子通道在同步过程中会生成自身的日志。您需要检查所有基础通道和子通道日志文件,以确保同步完成。
|
openSUSE Leap channels can be very large. Synchronization can sometimes take several hours. |
3. 管理 GPG 密钥
安装软件包之前,客户端会使用 GPG 密钥检查这些软件包的真实性。只有可信软件才能安装在客户端上。
|
信任 GPG 密钥对于客户端的安全非常重要。由管理员来决定需要哪些密钥,可以信任哪些密钥。这是因为如果不信任 GPG 密钥,便无法使用软件通道,是否将通道指派给客户端取决于是否信任密钥。 |
有关 GPG 密钥的详细信息,请参见 GPG 密钥。