Salt rosters are pluggable systems added in Salt 0.17.0 to facilitate the salt-ssh system. The roster system was created because salt-ssh needs a means to identify which systems need to be targeted for execution.


Salt rosters是用于方便使用salt-ssh的可插拔系统。因为salt-ssh需要一个途径来知道哪些目标主机需要被执行命令。

Salt roster不需要用于标准的Salt,因为Master不需要知道目标主机,Salt Minion会自己检查

Roster配置文件位于/etc/salt/roster


<Salt ID>:       # The id to reference the target system with
    host:        # The IP address or DNS name of the remote host
    user:        # The user to log in as
    passwd:      # The password to log in with

    # Optional parameters
    port:        # The target system's ssh port number
    sudo:        # Boolean to run command via sudo
    priv:        # File path to ssh private key, defaults to salt-ssh.rsa
    timeout:     # Number of seconds to wait for response
    minion_opts: # Dictionary of minion opts









参考文档:

http://docs.saltstack.com/en/2014.7/topics/ssh/roster.html