부트스트랩 스크립트로 클라이언트를 프록시에 등록

클라이언트는 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.

그런 다음 부트스트랩 스크립트는 클라이언트에 필요한 모든 정보를 배포합니다.

절차: 부트스트랩 스크립트로 클라이언트를 프록시에 등록
  1. SUSE Multi-Linux Manager 서버에서 Web UI를 사용하여 클라이언트 활성화 키를 생성하십시오. 자세한 내용은 활성화 키에서 확인할 수 있습니다.

  2. 서버의 컨테이너 호스트의 컨테이너에서 터미널을 시작하십시오.

    mgrctl term
    1. In the container, to create the bootstrap script, execute the mgr-bootstrap command, for example, with these options:

      mgr-bootstrap --hostname=MLM_PROXY --activation-keys=ACTIVATION_KEY \
        --script bootstrap-MLM_PROXY.sh

      Replace MLM_PROXY with the host name of your proxy.

      With the --script option 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 type mgr-bootstrap --help from the command line.

    2. 옵션: 출력된 부트스트랩 스크립트를 편집합니다.

  3. 부트스트랩 스크립트를 실행합니다. 다음의 두 가지 옵션이 있습니다.

    • 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