부트스트랩 스크립트로 클라이언트를 프록시에 등록
Clients can be registered through the SUSE Manager Proxy with a bootstrap script. This is done almost the same way as registering clients directly with the SUSE Manager Server.
Create the bootstrap script in the SUSE 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.
The bootstrap script then deploys all necessary information to the clients.
-
Create a client activation key on the SUSE Manager Server using the Web UI. For more information, see 활성화 키.
-
On the container host of the server, start a terminial in the container:
mgrctl term-
In the container, to create the bootstrap script, execute the
mgr-bootstrapcommand, for example, with these options:mgr-bootstrap --hostname=SUMA_PROXY --activation-keys=ACTIVATION_KEY \ --script bootstrap-SUMA_PROXY.shSUMA_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. -
옵션: 출력된 부트스트랩 스크립트를 편집합니다.
-
-
Execute the bootstrap script. There are two options:
-
스크립트를 클라이언트로 전송하고 클라이언트에서 직접 실행합니다. 또는 프록시는 요청을 서버로 전달하므로 클라이언트는 http://SUMA_PROXY/pub/bootstrap-SUMA_PROXY.sh에서 다운로드할 수 있습니다.
SUMA_PROXY를 프록시의 호스트 이름으로 바꿉니다. -
프록시에서
ssh를 사용하여 스크립트를 실행합니다.SUMA_PROXY를 프록시의 호스트 이름으로 바꾸고<client.example.com>을 클라이언트의 호스트 이름으로 바꿉니다.
cat /srv/www/htdocs/pub/bootstrap/bootstrap-SUMA_PROXY.sh | ssh root@<client.example.com> /bin/bash -