CONFIGURING SALT
配置SALT
Salt configuration is very simple. The default configuration for the master will work for most installations and the
Salt的配置非常簡單。master的默認配置對於大多數安裝起作用,
only requirement for setting up a minion is to set the location of the master in the minion configuration file.
啓動一個奴才節點的需求是在奴才節點的配置文件中設置master的位置。
The configuration files will be installed to /etc/salt
and are named after the respective
配置文件將被放在/etc/salt下面,分別以各自的組件而命名,/etc/salt/master,和/etc/salt/minion
components,/etc/salt/master
, and /etc/salt/minion
.
MASTER CONFIGURATION
MASTER的配置
By default the Salt master listens on ports 4505 and 4506 on all interfaces (0.0.0.0). To bind Salt to a specific
默認情況下Salt master監聽在所有接口(0.0.0.0)的4505和4506上面。要把Salt綁定到一個特殊的IP上,
IP, redefine the "interface" directive in the master configuration file, typically /etc/salt/master
, as follows:
需要對master的配置文件的"interface"指令重新定義,文件名爲/etc/salt/master,內容如下:
- #interface: 0.0.0.0 + interface: 10.0.0.1
After updating the configuration file, restart the Salt master. See the master configuration reference for more
在更新配置文件之後,重啓Salt master。想要更詳細的瞭解其他的可配置的選項可以參考master configuration reference 。
details about other configurable options.