Minion Primary Configuration(/etc/salt/minion)

master

Default: salt
the hostname or ipv4 of the master. Default: salt
master: salt
the option can can also be set to a list of masters, enabling multi-master mode.
master:
- address1
- address2

In addition, instead of using multi-master mode, the minion can be configured to use the list of master addresses as a failover list, trying the first address, then the second, etc. until the minion successfully connects. To enable this behavior, set master_type to failover:
master:
- address1
- address2
master_type: failover

master_alive_interval

Default: 0
Configures how often, in seconds, the minion will verify that the current master is alive and responding. the minion will try to establish a connection to the next master in the list if it finds the existing one is dead.
master_alive_interval: 30

master_port

Default: 4506
the port of the master ret server, this needs to coincide with the ret_port option on the Salt master.
master_port: 4506

id

Default: the system’s hostname
See also: Salt Walkthrough
the Setting up a Salt Minion section contains detailed information on how the hostname is determined.Explicitly declare the id for this minion to use. Since Salt uses detached ids it is possible to run multiple minions on the same machine but with different ids.
id: foo.bar.com

猜你喜欢

转载自blog.csdn.net/uevol14/article/details/53652373
今日推荐