使用引导脚本将客户端注册到代理
可以使用引导脚本通过 SUSE Multi-Linux Manager 代理注册客户端。这大致相当于直接将客户端注册到 SUSE Multi-Linux Manager 服务器。
Create the bootstrap script in the SUSE Multi-Linux Manager Server container with the mgr-bootstrap command line tool. mgr-bootstrap requires parameters such as the fully qualified domain name (FQDN) of the proxy, activation keys, or GPG keys. FQDN of the proxy is mandatory. All other parameters depend on the specific setup.
然后,引导脚本会将所有必要信息部署到客户端。
-
在 SUSE Multi-Linux Manager 服务器上,使用 Web UI 创建客户端激活密钥。有关详细信息,请参见 激活密钥。
-
在服务器的容器主机上,在容器内启动终端:
mgrctl term-
In the container, to create the bootstrap script, execute the
mgr-bootstrapcommand, for example, with these options:mgr-bootstrap --hostname=MLM_PROXY --activation-keys=ACTIVATION_KEY \ --script bootstrap-MLM_PROXY.shReplace
MLM_PROXYwith the host name of your proxy.With the
--scriptoption 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 typemgr-bootstrap --helpfrom the command line. -
可选:编辑生成的引导脚本。
-
-
执行引导脚本。可以通过两种方式来执行:
-
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
MLM_PROXYwith the host name of your proxy. -
Execute the script from the proxy with
ssh. ReplaceMLM_PROXYwith the host name of the proxy and ` <client.example.com>` with the host name of the client:
cat /srv/www/htdocs/pub/bootstrap/bootstrap-MLM_PROXY.sh | ssh root@<client.example.com> /bin/bash -