ブートストラップスクリプトを使用してクライアントをプロキシに登録する
ブートストラップスクリプトを使用してSUSE Multi-Linux Managerプロキシを介してクライアントを登録できます。これは、SUSE Multi-Linux Managerサーバにクライアントを直接登録する方法とほぼ同じです。
mgr-bootstrap
コマンドラインツールを使用して、SUSE Multi-Linux Managerサーバコンテナにブートストラップスクリプトを作成します。 mgr-bootstrap
には、プロキシの完全修飾ドメイン名(FQDN)、アクティベーション キー、または GPG キーなどのパラメータが必要です。 プロキシのFQDNは必須です。 その他のパラメータは、特定のセットアップによって異なります。
その後、ブートストラップスクリプトは、クライアントに必要すべての情報を配備します。
-
Web UIを使用してSUSE Multi-Linux Managerサーバでクライアントアクティベーションキーを作成します。詳細については、アクティベーションキーを参照してください。
-
サーバのコンテナホストで、コンテナ内で端末を起動します。
mgrctl term
-
コンテナ内で、ブートストラップスクリプトを作成するには、たとえば、次のオプションを指定して
mgr-bootstrap
コマンドを実行します。mgr-bootstrap --hostname=MLM_PROXY --activation-keys=ACTIVATION_KEY \ --script bootstrap-MLM_PROXY.sh
Replace
MLM_PROXY
with the host name of your proxy.--script
オプションを使用すると、ブートストラップスクリプトをわかりやすい名前で保存できます。 必要に応じて、追加のコマンドラインオプションを使用してブートストラップスクリプトをカスタマイズします。 利用可能なオプションを確認するには、コマンドラインからmgr-bootstrap --help
と入力してください。 -
オプション: 結果として得られたブートストラップスクリプトを編集します。
-
-
ブートストラップスクリプトを実行します。 次の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_PROXY
with the host name of your proxy. -
Execute the script from the proxy with
ssh
. ReplaceMLM_PROXY
with 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
-