Manage the information in the hosts file
Members
Add a host to an existing entry, if the entry is not in place then create it with the given host
CLI Example:
salt '*' hosts.add_host <ip> <alias>
Return the list of aliases associated with an ip
CLI Example:
salt '*' hosts.get_alias <ip addr>
Return the ip associated with the named host
CLI Example:
salt '*' hosts.get_ip <hostname>
Return true if the alias is set
CLI Example:
salt '*' hosts.has_pair <ip> <alias>
Return the hosts found in the hosts file in this format:
{'<ip addr>': ['alias1', 'alias2', ...]}
CLI Example:
salt '*' hosts.list_hosts