사용자 정의 채널
사용자 정의 채널을 사용하면 클라이언트를 업데이트하기 위해 사용할 수 있는 고유 소프트웨어 패키지 및 리포지토리를 생성할 수 있습니다. 또한, 사용자 환경에서 타사 벤더가 제공하는 소프트웨어도 사용할 수 있습니다.
이 섹션에서는 사용자 정의 채널을 생성, 관리 및 삭제하는 방법에 대해 자세히 설명합니다. 사용자 정의 채널을 생성 및 관리하려면 관리자 권한이 있어야 합니다.
1. Creating custom channels and repositories
사용자 정의 채널을 생성하기 전 연결할 기본 채널과 컨텐트에 사용할 리포지토리를 결정합니다.
클라이언트 시스템에 설치해야 하는 사용자 정의 소프트웨어 패키지가 있는 경우 사용자 정의 하위 채널을 생성하여 관리할 수 있습니다. SUSE Multi-Linux Manager Web UI에서 채널을 생성하고 패키지에 대한 리포지토리를 생성한 후 시스템에 채널을 할당해야 합니다.
|
클라이언트 시스템과 호환되지 않는 패키지가 포함된 하위 채널을 생성하지 마십시오. |
You can select a vendor channel as the base channel if you want to use packages provided by a vendor. Alternatively, select none to make your custom channel a base channel.
SUSE Multi-Linux Manager Web UI에서 로 이동하고 채널 생성을 클릭합니다.
On the
Create Software Channelpage, give your channel a name (for example,My Tools SLES 15 SP1 x86_64) and a label (for example,my-tools-sles15sp1-x86_64). 레이블에는 공백 또는 대문자를 포함하지 않아야 합니다.In the
Parent Channeldrop down, choose the relevant base channel (for example,SLE-Product-SLES15-SP1-Pool for x86_64). 패키지에 대해 호환되는 상위 채널을 선택했는지 확인합니다.In the
Architecturedrop down, choose the appropriate hardware architecture (for example,x86_64).필요한 대로, 연락처 세부 정보, 채널 액세스 제어 및 GPG 필드에 추가 정보를 입력합니다.
채널 생성을 클릭합니다.
Custom channels sometimes require additional security settings. Many third party vendors secure packages with GPG. If you want to use GPG-protected packages in your custom channel, you need to trust the GPG key which has been used to sign the metadata. You can then check the Has Signed Metadata? check box to match the package metadata against the trusted GPG keys.
If remote channels and repositories are signed with GPG keys, you can import and trust these GPG keys. For example, execute the spacewalk-repo-sync from the command line on the SUSE Multi-Linux Manager Server:
/usr/bin/spacewalk-repo-sync -c <channellabelname> -t yum
이 명령과 절차는 임시 GPG 키 동기화에만 사용됩니다. 키를 영구적으로 저장하려면 이후의 이 섹션을 참조하십시오.
The underlying zypper call will import the key, if it is available. The Web UI does not offer this feature.
이 기능은 미러링할 리포지토리가 특수 방식으로 설정되고 서명 옆의 리포지토리에 "키"를 제공하는 경우에만 작동하며, OBS(Open Build Service)에 의해 생성된 모든 리포지토리에 해당합니다. 다른 리포지토리의 경우 아래 설명과 같은 특별한 준비 단계가 필요합니다.
|
By default, the |
You can only add a repository to the SUSE Multi-Linux Manager with the Web UI if it is a valid software repository. Check in advance that needed repository metadata are available. Tools such as createrepo and reprepro are useful in this regard. mgrpush can help with pushing a single RPM into a channel without creating a repository.
-
For more information on
createrepo_cseehttps://manpages.opensuse.org/Leap-15.6/createrepo_c/ -
For more information on
repreproseehttps://manpages.opensuse.org/Leap-15.6/reprepro/
SUSE Multi-Linux Manager Web UI에서 로 이동하고 리포지토리 생성을 클릭합니다.
On the
Create Repositorypage, give your repository a label (for example,my-tools-sles15sp1-x86_64-repo).In the
Repository URLfield, provide the path to the directory that contains therepodatafile (for example,file:///opt/mytools/). You can use any valid addressing protocol in this field.Uncheck the
Has Signed Metadata?check box.선택 사항: 리포지토리에 클라이언트 인증서 인증이 필요한 경우 SSL 필드를 입력하십시오.
리포지토리 생성을 클릭합니다.
위의 절차는 미러링할 리포지토리가 서명 옆에 있는 리포지토리의 "키"를 제공하는 경우에만 작동합니다. OBS에 의해 생성된 모든 리포지토리의가 이에 해당하지만, 일반적으로 OBS에서 제공하지 않는 운영 체제의 다른 리포지토리는 해당하지 않습니다.
If the repository you want to use does not have a GPG key you can provide one yourself and import the GPG key into the keyring manually. If you import the key into the /var/lib/spacewalk/gpgdir keyring using the gpg command line tool it would be stored permanently. The key would also persist if the chroot environment would be cleaned.
컨테이너 호스트에서 키를 키링으로 가져오는 명령은 다음과 같습니다.
mgradm gpg add /path/to/gpg.key자세한 내용은 자체 GPG 키 사용에서 확인할 수 있습니다.
Add Debian non-flat repositories using
uyuni_suite,uyuni_component, anduyuni_archquery parameters.
uyuni_suite-
is mandatory. In Debian documentation, this is also known as
distribution. With this parameter you specify the apt source. Without this parameter the original approach is used. If the parameter ends with/, the repository is identified as flat. uyuni_component-
선택 사항입니다. 이 파라미터는 하나의 구성 요소만 지정할 수 있습니다. 구성 요소를 나열할 수는 없습니다. 적절한 소스 항목을 사용하면 여러 구성 요소를 지정할 수 있지만, Uyuni의 경우에는 불가능합니다. 대신 각 구성 요소에 대해 별도의 리포지토리를 생성해야 합니다.
uyuni_arch-
is optional. If omitted the architecture name is calculated with a SQL query for the channel from the database. Specify
uyuni_archexplicitly if it does not match the architecture of the channel (sometimes architecture naming is ambiguous).
예는 다음과 같습니다.
| Type | Source line / URL |
|---|---|
apt source line |
|
URL mapping |
|
|
|
apt source line |
|
URL mapping |
|
|
다음 정보는 Debian 리포지토리 정의 형식에 대한 정보로 https://wiki.debian.org/DebianRepository/Format#Overview를 기반으로 합니다. 리포지토리 정의 형식은 다음과 같습니다. deb uri suite [component1] [component2] [...] 예: deb https://deb.debian.org/debian/dists stable main 또는 deb https://pkg.jenkins.io/debian-stable binary/ For each pair of |
로 이동하여 새로 만든 사용자 정의 채널의 이름을 클릭하여 새 리포지토리를 사용자 정의 채널에 할당합니다.
Navigate to the
Repositoriestab, and ensure the repository you want to assign to the channel is checked. Click Save Repositories.기본적으로 동기화 프로세스는 즉시 시작됩니다.
채널 동기화에 대한 자세한 내용은 Custom channel synchronization에서 확인할 수 있습니다.
SUSE Multi-Linux Manager Web UI에서 로 이동하여 사용자 정의 채널을 추가할 키를 선택합니다.
On the
Detailstab, in theChild Channelslisting, select the channel to associate. 필요한 경우 여러 채널을 선택할 수 있습니다.활성화 키 업데이트를 클릭합니다.
2. Custom channel synchronization
중요한 업데이트가 누락되지 않으려면 SUSE는 원격 리포지토리 변경 사항에 따라 사용자 정의 채널을 최신 상태로 유지할 것을 권장합니다.
기본적으로, 동기화는 생성한 모든 사용자 정의 채널에 대해 자동으로 수행됩니다. 특히, 다음의 경우에 수행됩니다.
-
after adding a repository to a channel from the UI or by using
spacewalk-common-channels -
as part of the daily task
mgr-sync-refresh-default, which will synchronize all your custom and vendor channels.
To disable this default behaviour, set in /etc/rhn/rhn.conf:
java.unify_custom_channel_management = 0
이 속성을 끄면 동기화가 자동으로 수행되지 않으며, 사용자 정의 채널을 최신 상태로 유지하려면 다음을 수행합니다.
-
synchronize it manually by navigating to the
Synctab and click Sync Now, -
set up an automated synchronization schedule from the
Repositoriestab.
프로세스가 시작되면 채널이 동기화를 완료했는지 확인할 수 있는 다음과 같은 몇 가지 방법이 있습니다.
-
In the SUSE Multi-Linux Manager Web UI, navigate to and select the
Productstab. 이 대화 상자는 동기화되는 중에 각 제품에 대한 진행률 막대를 표시합니다. -
SUSE Multi-Linux Manager Web UI에서 로 이동한 다음, 리포지토리에 연결된 채널을 클릭합니다. Navigate to the menu:[Repositories > Sync] tab. The
Sync Statusis shown next to the repository name. -
명령 프롬프트에서 동기화 로그 파일을 확인합니다.
tail -f /var/log/rhn/reposync/<channel-label>.log
각 하위 채널은 동기화 진행 중에 자체 로그를 생성합니다. 동기화가 완료되었는지 확인하려면 모든 기본 및 하위 채널 로그 파일을 확인해야 합니다.
다음 사용자 지정 채널 동기화 옵션을 사용할 수 있습니다.
- 리포지토리에서 제거된 채널의 패키지를 유지합니다.
-
This turns off
strictmode. - 오류를 동기화하지 않음
-
패치를 동기화하지 마십시오.
- 최신 패키지만 동기화
-
최신 패키지 버전만 동기화하십시오.
- 킥스타트 가능 트리 생성
-
이 옵션은 Kickstart 자동 설치에 사용할 수 있는 디렉토리 트리를 준비합니다.
- 오류 발생 시 종료
-
오류가 발생하면 동기화를 중지하십시오.
이러한 옵션은 각 채널에 대해 영구적으로 저장됩니다. 지금 동기화 버튼도 채널 옵션을 저장한 후 동기화를 수행합니다.
3. Add packages and patches to custom channels
기존 채널에서 복제하지 않고 새 사용자 정의 채널을 생성하면 패키지 또는 패치가 포함되지 않습니다. SUSE Multi-Linux Manager Web UI를 사용하여 필요한 패키지 및 패치를 추가할 수 있습니다.
사용자 정의 채널은 복제되거나 사용자 정의된 패키지 또는 패치만 포함할 수 있으며 채널의 기본 아키텍처와 일치해야 합니다. 사용자 정의 채널에 추가된 패치는 채널에 있는 패키지에 적용되어야 합니다.
In the SUSE Multi-Linux Manager Web UI, navigate to , and go to the
Packagestab.OPTIONAL: See all packages currently in the channel by navigating to the
List/Removetab.Add new packages to the channel by navigating to the
Addtab.패키지를 제공할 상위 채널을 선택하고 패키지 보기를 클릭하여 목록을 채웁니다.
사용자 정의 채널에 추가할 패키지를 확인하고 패키지 추가를 클릭합니다.
선택 사항에 만족하면 추가 확인을 클릭하여 채널에 패키지를 추가합니다.
선택 사항: 로 이동하고 탭으로 이동하여 현재 채널의 패키지를 다른 채널의 패키지와 비교할 수 있습니다. 두 채널을 동일하게 만들려면 차이 병합 버튼을 클릭하고 충돌을 해결합니다.
In the SUSE Multi-Linux Manager Web UI, navigate to , and go to the
Patchestab.OPTIONAL: See all patches currently in the channel by navigating to the
List/Removetab.Add new patches to the channel by navigating to the
Addtab, and selecting what kind of patches you want to add.패치를 제공할 상위 채널을 선택하고 관련 패치 보기를 클릭하여 목록을 채웁니다.
사용자 정의 채널에 추가할 패치를 확인하고 확인을 클릭합니다.
선택 사항에 만족하면 확인을 클릭하여 채널에 패치를 추가합니다.
4. Manage custom channels
SUSE Multi-Linux Manager 관리자 및 채널 관리자는 모든 채널을 변경 또는 삭제할 수 있습니다.
To grant other users rights to alter or delete a channel, navigate to and select the channel you want to edit. Navigate to the Managers tab, and check the user to grant permissions. Click Update to save the changes.
|
클라이언트 집합에 할당된 채널을 삭제하면 삭제된 채널 및 연결된 모든 클라이언트의 채널 상태가 즉시 업데이트됩니다. 이를 통해 변경 사항이 리포지토리 파일에 정확하게 반영될 수 있습니다. |
Web UI를 사용하여 SUSE Multi-Linux Manager 채널을 삭제할 수 없습니다. 사용자 정의 채널만 삭제할 수 있습니다.
SUSE Multi-Linux Manager Web UI에서 로 이동하여 삭제할 채널을 선택합니다.
소프트웨어 채널 삭제를 클릭합니다.
On the
Delete Channelpage, check the details of the channel you are deleting, and check theUnsubscribe Systemscheckbox to remove the custom channel from any systems that might still be subscribed.채널 삭제를 클릭합니다.
채널이 삭제될 때 삭제된 채널의 일부에 해당하는 패키지는 자동으로 제거되지 않습니다. 채널이 삭제된 패키지는 업데이트할 수 없습니다.
SUSE Multi-Linux Manager Web UI에서 채널과 연결되지 않은 패키지를 삭제할 수 있습니다. 로 이동하여 제거할 패키지를 확인하고 패키지 삭제를 클릭합니다.