명령줄에서 클라이언트 등록

1. Introduction

Salt clients are registered accurately with the default bootstrap methods in most cases.

However, you can use Salt to register the client to the SUSE Multi-Linux Manager Server manually by editing the Salt minion file on the client, and providing the fully qualified domain name (FQDN) of the server.

This method:

  • uses ports 4505 and 4506 inbound to the server.

  • requires no configuration on the SUSE Multi-Linux Manager Server aside from ensuring that these ports are open.

  • requires that you have installed the venv-salt-minion (Salt bundle) or the salt-minion package on the Salt client before registration. Both use configuration files in different locations and filenames remain the same. The systemd service filename is different.

이 방법으로 부트스트랩하면 클라이언트 도구 채널 또는 공식 SUSE 배포판의 일부인 salt-minion을 사용하는 경우에만 작동합니다.

2. Salt 번들 구성

Salt 번들(venv-salt-minion)
  • /etc/venv-salt-minion/

  • /etc/venv-salt-minion/minion

  • /etc/venv-salt-minion/minion.d/NAME.conf

  • systemd 서비스 파일: venv-salt-minion.service

Salt 번들에 대한 자세한 내용은 Salt Bundle에서 참조하십시오.

절차: Salt Bundle 구성 파일로 클라이언트 등록
  1. Salt 클라이언트에서 minion 구성 파일을 엽니다. 구성 파일의 위치는 다음 중 하나입니다.

    Listing 1. Configuration File
    /etc/venv-salt-minion/minion

    또는:

    Listing 2. Configuration File
    /etc/venv-salt-minion/minion.d/NAME.conf
  2. 파일에서 SUSE Multi-Linux Manager 서버 또는 프록시의 FQDN과 활성화 키(있는 경우)를 추가하거나 편집합니다. 또한 아래 나열된 다른 구성 파라미터를 추가합니다.

    Listing 3. Configuration Parameters
    master: SERVER.EXAMPLE.COM
    
    세분화:
      susemanager:
        activation_key: "<Activation_Key_Name>"
    
    server_id_use_crc: adler32
    enable_legacy_startup_events: False
    enable_fqdns_grains: False
  3. 다음과 같이 venv-salt-minion 서비스를 재시작합니다.

    systemctl restart venv-salt-minion
  4. SUSE Multi-Linux Manager 서버에서 새로운 클라이언트 키를 수락하고, 다음과 같이 <client>를 클라이언트의 이름으로 교체합니다.

    salt-key -a '<client>'

3. 클라이언트 구성

클라이언트(salt-minion)
  • /etc/salt/

  • /etc/salt/minion

  • /etc/salt/minion.d/NAME.conf

  • systemd 서비스 파일: salt-minion.service

절차: Salt Minion 구성 파일로 클라이언트 등록
  1. Salt 클라이언트에서 minion 구성 파일을 엽니다. 구성 파일의 위치는 다음 중 하나입니다.

    /etc/salt/minion

    또는:

    /etc/salt/minion.d/NAME.conf
  2. 파일에서 SUSE Multi-Linux Manager 서버 또는 프록시의 FQDN과 활성화 키(있는 경우)를 추가하거나 편집합니다. 또한 아래에 나열된 다른 구성 파라미터도 추가합니다.

    master: SERVER.EXAMPLE.COM
    
    세분화:
      susemanager:
        activation_key: "<Activation_Key_Name>"
    
    server_id_use_crc: adler32
    enable_legacy_startup_events: False
    enable_fqdns_grains: False
  3. 다음과 같이 salt-minion 서비스를 다시 시작합니다.

    systemctl restart salt-minion
  4. SUSE Multi-Linux Manager 서버에서 새로운 클라이언트 키를 수락하고, 다음과 같이 <client>를 클라이언트의 이름으로 교체합니다.

    salt-key -a '<client>'

For more information about the Salt minion configuration file, see Configuring the Salt Minion.