명령줄에서 클라이언트 등록
1. 소개
대부분의 경우 Salt 클라이언트는 기본 부트스트랩 방법으로 정확하게 등록할 수 있습니다.
그러나 Salt를 사용하여 클라이언트에서 Salt 미니언 파일을 편집하고 서버의 FQDN(정규화된 도메인 이름)을 제공하여 SUSE Multi-Linux Manager 서버에 클라이언트를 수동으로 등록할 수 있습니다.
다음 방법:
-
서버로 인바운드되는 포트 4505 및 4506을 사용합니다.
-
이러한 포트가 열려 있는지 확인하는 것 외에는 SUSE Multi-Linux Manager 서버에서 별도의 구성이 필요하지 않습니다.
-
requires that you have installed the
venv-salt-minion(Salt bundle) or thesalt-minionpackage on the Salt client before registration. Both use configuration files in different locations and filenames remain the same. Thesystemdservice filename is different.
|
Bootstrapping this way will only work if you use the |
2. Salt 번들 구성
- Salt Bundle (
venv-salt-minion) -
-
/etc/venv-salt-minion/ -
/etc/venv-salt-minion/minion -
/etc/venv-salt-minion/minion.d/NAME.conf -
systemd service file:
venv-salt-minion.service
Salt 번들에 대한 자세한 내용은 Salt Bundle에서 참조하십시오.
-
-
On the Salt client, open the
minionconfiguration file. The configuration file is either located at:Listing 1. 구성 파일/etc/venv-salt-minion/minion또는:
Listing 2. 구성 파일/etc/venv-salt-minion/minion.d/NAME.conf -
파일에서 SUSE Multi-Linux Manager 서버 또는 프록시의 FQDN과 활성화 키(있는 경우)를 추가하거나 편집합니다. 또한 아래 나열된 다른 구성 파라미터를 추가합니다.
Listing 3. 구성 파라미터master: SERVER.EXAMPLE.COM 세분화: susemanager: activation_key: "<Activation_Key_Name>" server_id_use_crc: adler32 enable_legacy_startup_events: False enable_fqdns_grains: False -
Restart the
venv-salt-minionservice:systemctl restart venv-salt-minion -
On the SUSE Multi-Linux Manager Server, accept the new client key; replace
<client>with the name of your client:salt-key -a '<client>'
3. 클라이언트 구성
- Client (
salt-minion) -
-
/etc/salt/ -
/etc/salt/minion -
/etc/salt/minion.d/NAME.conf -
systemd service file:
salt-minion.service
-
-
On the Salt client, open the
minionconfiguration file. The configuration file is either located at:/etc/salt/minion또는:
/etc/salt/minion.d/NAME.conf -
파일에서 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 -
Restart the
salt-minionservice:systemctl restart salt-minion -
On the SUSE Multi-Linux Manager Server, accept the new client key; replace
<client>with the name of your client:salt-key -a '<client>'
Salt 미니언 구성 파일에 대한 자세한 내용은 Salt 미니언 구성에서 확인할 수 있습니다.