salt-安裝

INSTALLATION/安裝

This section contains instructions to install Salt. If you are setting up your environment for the first time, you should install a Salt master on a dedicated management server or VM, and then install a Salt minion on each system that you want to manage using Salt. For now you don't need to worry about your architecture, you can easily add components and modify your configuration later without needing to reinstall anything.


這一節包括安裝salt的介紹。如果你是第一次啓動環境,你應該在一臺專用的管理服務器或者VM上面安裝Salt master,然後在每一個你要去管理的系統上安裝Salt minion.

現在你不需要關心你的架構,在後面你可以在不重新安裝任何軟件的情況下,很容易的添加組件、修改你的配置。

---------------------------------------------------------------------------------------------------------------------------------------------------

The general installation process is as follows:

  1. Install a Salt master using the instructions for your platform or by running the Salt bootstrap script. If you use the bootstrap script, be sure to include the -M option to install the Salt master.

  2. Make sure that your Salt minions can find the Salt master.

  3. Install the Salt minion on each system that you want to manage.

  4. Accept the Salt minion keys after the Salt minion connects.

After this, you should be able to run a simple command and receive returns from all connected Salt minions.

salt '*' test.ping

一般的安裝過程如下所示:

  1. 使用你的系統平臺的說明安裝Salt master 或者通過執行Salt bootstrap腳本安裝Salt master. 如果你用bootstrap腳本安裝,要確保包含 -M 選項以用來安裝Salt master ;

  2. 確保你的Salt minion 可以找到Salt master;

  3. 在你想管理的每一個系統上面安裝Salt minion;

  4. 在Salt minion連接之後,接受Salt minion keys

做完這些之後,你應該執行一個簡單的命令,該命令可以從已經連接上的Salt minion上面返回結果。

salt '*' test.ping

---------------------------------------------------------------------------------------------------------------------------------------------------

QUICK INSTALL /快速安裝

On most distributions, you can set up a Salt Minion with the Salt bootstrap.

在大多數發行版上面,都可以通過Salt bootstrap來安裝Salt Minion.

---------------------------------------------------------------------------------------------------------------------------------------------------

PLATFORM-SPECIFIC INSTALLATION INSTRUCTIONS

These guides go into detail how to install Salt on a given platform.

該指南詳細地研究如何在指定的平臺上面安裝Salt。

---------------------------------------------------------------------------------------------------------------------------------------------------



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章