コマンドラインでクライアントを登録する
1. 概要
ほとんどの場合、Saltクライアントは、デフォルトのブートストラップメソッドで正確に登録されます。
ただし、Saltを使用してクライアントをSUSE Multi-Linux Managerサーバに手動で登録できます。そのためには、クライアントでSalt minionファイルを編集し、サーバの完全修飾ドメイン名(FQDN)を指定します。
このメソッドでは:
-
サーバで受信するポート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 Bundleの設定
- 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 bundleの詳細については、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. 設定パラメータマスタ: SERVER.EXAMPLE.COM grains: 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と、アクティベーションキー(存在する場合)を追加または編集します。以下にリストされている他の設定パラメータも追加します。
マスタ: SERVER.EXAMPLE.COM grains: 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 minion設定ファイルの詳細については、Salt Minionの設定を参照してください。