Use the minion cache on the master to derive IP addresses based on minion ID.

Currently only contains logic to return an IPv4 address; does not handle IPv6, or authentication (passwords, keys, etc).

It is possible to configure this roster to prefer a particular type of IP over another. To configure the order, set the roster_order in the master config file. The default for this is:

  - public
  - private
  - local
salt.roster.cache.extract_ipv4(roster_order, ipv4)

Extract the preferred IP address from the ipv4 grain

salt.roster.cache.targets(tgt, tgt_type='glob', **kwargs)

Return the targets from the flat yaml file, checks opts for location but defaults to /etc/salt/roster