Documentation survey

ブートストラップスクリプトを使用してクライアントをプロキシに登録する

ブートストラップスクリプトを使用してSUSE Multi-Linux Managerプロキシを介してクライアントを登録できます。これは、SUSE Multi-Linux Managerサーバにクライアントを直接登録する方法とほぼ同じです。

mgr-bootstrapコマンドラインツールを使用して、SUSE Multi-Linux Managerサーバコンテナにブートストラップスクリプトを作成します。 mgr-bootstrapには、プロキシの完全修飾ドメイン名(FQDN)、アクティベーション キー、または GPG キーなどのパラメータが必要です。 プロキシのFQDNは必須です。 その他のパラメータは、特定のセットアップによって異なります。

その後、ブートストラップスクリプトは、クライアントに必要すべての情報を配備します。

プロシージャ: ブートストラップスクリプトを使用してクライアントをプロキシに登録する
  1. Web UIを使用してSUSE Multi-Linux Managerサーバでクライアントアクティベーションキーを作成します。詳細については、アクティベーションキーを参照してください。

  2. サーバのコンテナホストで、コンテナ内で端末を起動します。

    mgrctl term
    1. コンテナ内で、ブートストラップスクリプトを作成するには、たとえば、次のオプションを指定して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. オプション: 結果として得られたブートストラップスクリプトを編集します。

  3. ブートストラップスクリプトを実行します。 次の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. Replace MLM_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