Debian 클라이언트 등록
이 섹션에는 Debian 운영 체제를 실행하는 클라이언트를 등록하는 방법에 대한 정보가 포함되어 있습니다.
Debian 클라이언트에서는 부트스트래핑을 사용해 초기 상태 실행을 수행하고 프로파일을 업데이트할 수 있습니다.
|
1. 등록 준비
Debian 클라이언트를 SUSE Multi-Linux Manager 서버에 등록하려면 다음과 같은 약간의 준비가 필요합니다.
-
Ensure DNS is correctly configured and provides an entry for the client. Alternatively, you can configure the
/etc/hostsfiles on both the SUSE Multi-Linux Manager Server and the client with the appropriate entries. -
클라이언트의 날짜 및 시간을 SUSE Multi-Linux Manager 서버와 동기화한 후 등록해야 합니다.
2. 소프트웨어 채널 추가
Debian 클라이언트를 SUSE Multi-Linux Manager 서버에 등록하려면 먼저 필요한 소프트웨어 채널을 추가하고 이 채널을 동기화해야 합니다.
|
In the following section, descriptions often default to the |
이 절차에 필요한 제품은 다음과 같습니다.
| OS Version | Product Name |
|---|---|
Debian 12 |
Debian 12 |
Debian 13 |
Debian 13 |
SUSE Multi-Linux Manager Web UI에서 으로 이동합니다.
Locate the appropriate products for your client operating system and architecture using the search bar, and check the appropriate product. This will automatically check all mandatory channels. Also all recommended channels are checked as long as the
include recommendedtoggle is turned on. Click the arrow to see the complete list of related products, and ensure that any extra products you require are checked.제품 추가를 클릭하고 제품이 동기화를 마칠 때까지 기다립니다.
또는 명령 프롬프트에서 채널을 추가할 수 있습니다. 이 절차에 필요한 채널은 다음과 같습니다.
| OS Version | Product Name |
|---|---|
Debian 12 |
debian-12-pool-amd64 |
Debian 13 |
debian-13-pool-amd64 |
SUSE Multi-Linux Manager 컨테이너 호스트의 명령 프롬프트에서 루트 권한으로 적절한 채널을 추가합니다.
mgrctl exec -ti -- mgr-sync add channel <channel_label_1> mgrctl exec -ti -- mgr-sync add channel <channel_label_2> mgrctl exec -ti -- mgr-sync add channel <channel_label_n>동기화가 자동으로 시작됩니다. 채널을 수동으로 동기화하려면 다음 명령을 사용하십시오.
mgrctl exec -- mgr-sync sync --with-children <channel_name>계속하기 전에 동기화가 완료되었는지 확인합니다.
3. 동기화 상태 확인
In the SUSE Multi-Linux Manager Web UI, navigate to and select the
Productstab. This dialog displays a completion bar for each product when they are being synchronized.Alternatively, you can navigate to , then click the channel associated to the repository. Navigate to the
Repositoriestab, then clickSyncand checkSync Status.
테일링 하기 전 사용 가능한 로그를 나열하려면 컨테이너 호스트에서 다음 명령을 실행합니다.
mgrctl exec ls /var/log/rhn/reposync/SUSE Multi-Linux Manager 컨테이너 호스트의 명령 프롬프트에서 루트 권한으로 채널 로그 파일의 동기화를 확인합니다.
mgrctl exec -ti -- tail -f /var/log/rhn/reposync/<channel-label>.log각 하위 채널은 동기화 진행 중에 자체 로그를 생성합니다. 동기화가 완료되었는지 확인하려면 모든 기본 및 하위 채널 로그 파일을 확인해야 합니다.
|
Debian 채널은 규모가 매우 클 수 있습니다. 때로 동기화에 몇 시간이 걸릴 수 있습니다. |
4. GPG 키 관리
클라이언트는 소프트웨어 패키지가 설치되기 전에 GPG 키를 사용해 신뢰성을 확인합니다. 신뢰할 수 있는 소프트웨어만 클라이언트에 설치할 수 있습니다.
|
클라이언트의 보안을 위해 GPG 키를 신뢰하는 것이 중요합니다. 어떤 키가 필요하고 신뢰할 수 있는지 결정하는 것은 관리자가 수행해야 하는 작업입니다. GPG 키를 신뢰할 수 없는 경우 소프트웨어 채널을 사용할 수 없기 때문에 채널을 클라이언트에 할당하는 결정은 키를 신뢰하는 결정에 따라 달라집니다. |
GPG 키에 대한 자세한 내용은 GPG 키에서 확인할 수 있습니다.
|
Debian 클라이언트를 설치하려면 여러 개의 GPG 키가 필요할 수 있습니다. |
타사 Debian 리포지토리를 동기화하는 경우 서버에서 적절한 GPG 키를 가져와야 합니다. GPG 키가 누락되면 동기화에 실패합니다.
Debian 리포지토리의 경우, 메타데이터만 서명됩니다. 그러므로 소프트웨어 채널용 GPG 키를 가져올 필요가 없습니다. Uyuni는 패키지에 다시 서명하지 않습니다.
SUSE Multi-Linux Manager 서버로 이미 임포트한 GPG 키를 살펴보려면 다음 명령을 실행합니다.
mgrctl exec -- gpg --homedir /var/lib/spacewalk/gpgdir --list-keys
새 GPG 키를 임포트하려면 다음 명령을 실행합니다.
mgradm gpg add <filename>.gpg
5. 루트 액세스
Debian의 루트 사용자는 SSH 액세스에 대해 기본적으로 비활성화되어 있습니다.
To be able to onboard using a regular user, you need to edit the sudoers file.
-
On the client, edit the
sudoersfile:sudo visudo
Grant
sudoaccess to the user by adding this line at the end of thesudoersfile. Replace<user>with the name of the user that is bootstrapping the client in the Web UI:<user> ALL=NOPASSWD: /usr/bin/python, /usr/bin/python2, /usr/bin/python3, /var/tmp/venv-salt-minion/bin/python
|
This procedure grants root access without requiring a password, which is required for registering the client. When the client is successfully installed it runs with root privileges, so the access is no longer required. We recommend that you remove the line from the |
6. 클라이언트 등록
클라이언트를 등록하려면 부트스트랩 리포지토리가 필요합니다. 기본적으로 부트스트랩 리포지토리는 자동으로 생성되며 동기화된 모든 제품에 대해 매일 재생성됩니다. 컨테이너 호스트의 명령 프롬프트에서 수동으로 부트스트랩 리포지토리를 생성할 수 있습니다.
mgrctl exec -ti mgr-create-bootstrap-repo
클라이언트 등록에 대한 자세한 내용은 클라이언트 등록에서 참조하십시오.