salt/doc/topics/ssh/roster.rst

38 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2013-09-09 05:00:45 +00:00
============
Salt Rosters
============
Salt rosters are plugable systems added in Salt 0.17.0 to facilitate the
2013-09-09 05:00:45 +00:00
``salt-ssh`` system.
The roster system was created because ``salt-ssh`` needs a means to
identify which systems need to be targetted for execution.
.. note::
The Roster System is not needed or used in standard Salt because the
master does not need to be initially aware of target systems, since the
Salt Minion checks itself into the master.
Since the roster system is pluggable, it can be easily augmented to attach to
any existing systems to gather information about what servers are presently
available and should be attached to by ``salt-ssh``.
How Rosters Work
================
The roster system compiles a data structure internally refered to as
`targets`. The `targets` is a list of target systems and attributes about how
to connect to said systems. The only requirement for a roster module in Salt
is to return the `targets` data structure.
Targets Data
------------
The information which can be stored in a roster `target` is the following:
.. code-block:: yaml
2013-09-10 11:45:00 +00:00
<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