客户端删除
如果需要从 SUSE Multi-Linux Manager 服务器中去除客户端,您可以:
-
使用 Web UI 将其删除
-
从命令行去除客户端。
1. 使用 Web UI 删除客户端
在 SUSE Multi-Linux Manager Web UI中,导航到,然后选择要删除的客户端。
单击 删除系统。
检查细节并单击 删除配置文件 确认。
For Salt clients, SUSE Multi-Linux Manager attempts to clean up additional configuration. If the client cannot be contacted, you are given the option to cancel the deletion, or delete the client without cleaning up the configuration files.
还可以使用系统集管理器删除多个客户端。有关系统集管理器的详细信息,请参见 系统集管理器。
|
清理客户端只会禁用 Salt 并停止服务(如果可能)。此操作不会卸装软件包。 |
2. Delete a client on the command line (with API call)
使用 FQDN(完全限定的域名)删除客户端:
spacecmd system_delete FQDN
spacecmd system_delete 还可删除 Salt 密钥。
system_delete 提供以下选项:
usage: system_delete [选项] <系统>
选项:
-c TYPE - 可能的值:
* 'FAIL_ON_CLEANUP_ERR' - 如果发生清理错误则失败,
* 'NO_CLEANUP' - 不清理,仅删除,
* 'FORCE_DELETE' - 先尝试清理,但在发生错误时仍会
删除服务器
3. Delete client from the command line
|
此过程仅适用于 SUSE Multi-Linux Manager 客户端。请勿在 SUSE Multi-Linux Manager 服务器上运行。 |
|
请勿在运行 Red Hat Enterprise Linux、Debian 或克隆的客户端上执行以下过程,而是应使用与 |
停止 salt-minion 服务:
systemctl stop salt-minion去除储存库和配置文件:
rm -f /etc/zypp/repos.d/susemanager\:bootstrap.repo rm -f /etc/zypp/repos.d/susemanager\:channels.repo rm -r /etc/sysconfig/rhn/ rm -r /etc/salt/去除客户端软件包:
zypper rm salt salt-minion python*-salt sle-manager-tools-release
要取消注册,请运行以下命令:
systemctl stop venv-salt-minion zypper rm -y venv-salt-minion sle-manager-tools-release rm -f /etc/zypp/repos.d/susemanager\:bootstrap.repo rm -f /etc/zypp/repos.d/susemanager\:channels.repo rm -r /etc/venv-salt-minion/*Remove client machine ID:
rm /etc/sysconfig/rhn/systemid
有关 Salt 捆绑包的信息,请参见 Salt 捆绑包。