Retail Uyuni Branch Server

This section covers SUSE Manager for Retail Branch Server installation and setup, using these procedures:

  • 소프트웨어 채널 추가

  • 동기화 상태 확인

  • 클라이언트의 GPG 키 신뢰

  • Register the Branch Server and Terminals as Clients

The SUSE Manager for Retail Branch Server is a SUSE Manager Proxy with additional Retail features. For proxy installation procedures, see openSUSE Leap을 사용한 SUSE Manager 프록시 설치 and Uyuni 프록시 설정.

Then continue with the following sections.

1. 소프트웨어 채널 추가

Before you register SUSE Manager branch servers and terminals to your SUSE Manager Server, check that you have the openSUSE product enabled, and the required channels are fully synchronized.

이 프로시저에 필요한 제품은 다음과 같습니다.

Table 1. openSUSE Channels - CLI
OS Version Base Channel Client Channel Updates Channel Non-OSS Channel Non-OSS Updates Channel Backports Updates Channel SLE Updates Channel

openSUSE Leap 15.4

opensuse_leap15_4

opensuse_leap15_4-uyuni-client

opensuse_leap15_4-updates

opensuse_leap15_4-non-oss

opensuse_leap15_4-non-oss-updates

opensuse_leap15_4-backports-updates

opensuse_leap15_4-sle-updates

명령 프롬프트에서 소프트웨어 채널 추가
  1. SUSE Manager 서버의 명령 프롬프트에서 루트로 spacewalk-common-channels 명령을 사용하여 적절한 채널을 추가합니다.

    spacewalk-common-channels \
    <base_channel_name> \
    <child_channel_name_1> \
    <child_channel_name_2> \
    ... <child_channel_name_n>
  2. 채널을 다음과 같이 동기화합니다.

    mgr-sync refresh --refresh-channels

2. 동기화 상태 확인

절차: 동기화 진행 상태 확인
  1. SUSE Manager Web UI에서 소프트웨어  관리  채널로 이동한 다음, 리포지토리에 연결된 채널을 클릭합니다.

  2. 리포지토리 탭으로 이동한 다음, 동기화를 클릭하고 동기화 상태를 확인합니다.

프로시저: 명령 프롬프트에서 동기화 진행 상태 확인
  1. SUSE Manager 서버의 명령 프롬프트에서 루트 권한으로 다음과 같이 tail 명령을 사용해 동기화 로그 파일을 확인합니다.

    tail -f /var/log/rhn/reposync/<channel-label>.log
  2. Each child channel generates its own log during the synchronization progress. You will need to check all the base and child channel log files to be sure that the synchronization is complete.

openSUSE 채널은 규모가 매우 클 수 있습니다. 때로 동기화에 몇 시간이 걸릴 수 있습니다.

3. 클라이언트의 GPG 키 신뢰

By default, some operating systems do not trust the GPG key for the SUSE Manager client tools. The clients can be successfully bootstrapped without the GPG key being trusted. However, you will not be able to install new client tool packages or update them until the keys are trusted.

프로시저: 클라이언트의 GPG 키 신뢰
  1. On the SUSE Manager Server, at the command prompt, check the contents of the /srv/www/htdocs/pub/ directory. This directory contains all available public keys. Take a note of the key that applies to the client you are registering.

  2. 관련 부트스트랩 스크립트를 열어 ORG_GPG_KEY= 파라미터를 찾고 필요한 키를 추가합니다. 예:

    uyuni-gpg-pubkey-0d20833e.key
      You do not need to delete any previously stored keys.
    . If you are bootstrapping clients from the {productname} {webui}, you will need to use a Salt state to trust the key.
      Create the Salt state and assign it to the organization.
      You can then use an activation key and configuration channels to deploy the key to the clients.

4. Create Activation Key for a Branch Server and the Retail Terminal Images

The branch server is based on the SUSE Manager Proxy. Its activation key must contain these child channels:

  • openSUSE Leap 15.5 Updates (x86_64)

  • Uyuni Client Tools for openSUSE Leap 15.5 (x86_64)

  • Uyuni Proxy Stable for openSUSE Leap 15.5 (x86_64)

The activation key for retail terminal images based on openSUSE Leap 15.5 must contain these child channels:

  • openSUSE Leap 15.5 Updates (x86_64)

  • Uyuni Client Tools for openSUSE Leap 15.5 (x86_64)

For more information about creating activation keys, see 활성화 키.

5. Register the Branch Server and Terminals as Clients

You register both the branch server and the terminals as openSUSE clients. To register your openSUSE clients, you need a bootstrap repository. By default, bootstrap repositories are automatically created, and regenerated daily for all synchronized products. You can manually create the bootstrap repository from the command prompt, using this command:

mgr-create-bootstrap-repo --with-custom-channels

클라이언트 등록에 대한 자세한 내용은 클라이언트 등록에서 참조하십시오.

5.1. Register the Branch Server

A retail branch server is registered as an openSUSE proxy. The proxy can be bootstrapped using the Web UI, or at the command prompt. Ensure you use the activation key you created for the proxy.

For more information about proxies, see SUSE Manager 프록시 등록. For more information about activation keys, see 활성화 키.

Procedure: Setting Up the Uyuni Proxy
  1. Check that the Uyuni Proxy Stable for openSUSE Leap 15.5 (x86_64) channel is assigned to the proxy on the system profile page.

  2. At the command prompt on the proxy, as root, install the proxy pattern:

    zypper in -t pattern uyuni_proxy
  3. Finalize the proxy setup:

    configure-proxy.sh
    [command]``configure-proxy.sh`` is an interactive script.
    For more information about the proxy setup script, see xref:installation-and-upgrade:uyuni-proxy-setup.adoc#uyuni-proxy-setup-confproxy[].
  4. OPTIONAL: If you want to use the same system also as a build host, navigate to the client’s system profile and check OS Image Build Host as a Add-On System Types.

  5. Configure the proxy to become a branch server. On the SUSE Manager for Retail Server, for example, run:

    retail_branch_init <branch_server_minion_id> --dedicated-nic eth1 \
        --branch-ip 192.168.7.5 \
        --netmask 255.255.255.0 \
        --dyn-range 192.168.7.100 192.168.7.200 \
        --server-domain branch.example.org \
        --branch-prefix uyuni
    For additional options,  use the [command]``retail_branch_init --help`` command.