ブートストラップスクリプトを使用してクライアントをプロキシに登録する
ブートストラップスクリプトを使用して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.
その後、ブートストラップスクリプトは、クライアントに必要すべての情報を配備します。
-
Web UIを使用してSUSE Multi-Linux Managerサーバでクライアントアクティベーションキーを作成します。詳細については、アクティベーションキーを参照してください。
-
サーバのコンテナホストで、コンテナ内で端末を起動します。
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. -
オプション: 結果として得られたブートストラップスクリプトを編集します。
-
-
ブートストラップスクリプトを実行します。 次の2つのオプションがあります。
-
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 -