SUSE Manager Server 重命名查错
如果您在本地更改了 SUSE Manager Server 的主机名,SUSE Manager 安装将无法正常进行。这是因为尚未在数据库中做出相应更改,因而这些更改无法从您的客户端和任何代理传播出来。
如果您需要更改 SUSE Manager 服务器的主机名,可以使用 spacewalk-hostname-rename 脚本来更改。此脚本会更新 PostgreSQL 数据库以及 SUSE Manager 的内部结构中的设置。
spacewalk-hostname-rename 脚本是 spacewalk-utils 软件包的组成部分。
该脚本唯一的必需参数是 SUSE Manager 服务器新配置的 IP 地址。
-
在 DNS 服务器上,本地和远程更改系统级别的服务器的网络设置。 您还需要提供用于反向名称解析的配置设置。更改网络设置的方式与重命名任何其他系统的方式相同。
-
重引导 SUSE Manager Server 以使用新网络配置并确保主机名更改。
-
结合服务器的公共 IP 地址运行脚本
spacewalk-hostname-rename。 如果服务器未使用新主机名,则该脚本会失败。请注意,此脚本会刷新所有 Salt 客户端的 pillar 数据:运行时间取决于注册的客户端数量。 -
Skip this step if the clients are managed via a SUSE Manager proxy. Re-configure the clients directly managed to make them aware of the new hostname and IP address. In the Salt client configuration file, you must specify the name of the new Salt master (SUSE Manager Server) (the filename is
/etc/venv-salt-bundle/minionor, if you do not use the Salt bundle,/etc/salt/minion):master: <新主机名>
-
重启动
venv-salt-minion服务(如果使用 Salt 捆绑包):systemctl restart venv-salt-minion
或
salt-minion服务(如果未使用 Salt 捆绑包):systemctl restart salt-minion
-
要将主机名完全传播到 Salt 客户端配置,请应用 Highstate。应用 Highstate 会更新储存库 URL 中的主机名。
|
必须重新配置所有代理。必须将新服务器证书和密钥复制到代理上,并且必须运行 |
-
Directly connected traditional clients have the
/etc/sysconfig/rhn/up2dateconfiguration file that must be changed. With a re-activation key you can re-register traditional clients (if there are any). -
On traditional clients behind a proxy, as root, copy
/etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERTfrom the proxy to the client, and runupdate-ca-certificateson the traditional client (replace<proxy FQDN>with the fully qualified domain name or your proxy):cd /etc/pki/trust/anchors mv RHN-ORG-TRUSTED-SSL-CERT RHN-ORG-TRUSTED-SSL-CERT.old scp <proxy FQDN>:/etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT . update-ca-certificates
|
如果通过某个代理使用 PXE 引导,则必须检查该代理的配置设置。在该代理上,运行 |