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.
转载于:https://blog.51cto.com/wangjingshuai/1792767