Parses roster entries out of Host directives from SSH config
salt-ssh --roster sshconfig '*' -r "echo hi"
salt.roster.sshconfig.RosterMatcher(raw, tgt, tgt_type)
Matcher for the roster data structure
get_data(minion)
Return the configured ip
ret_glob_minions()
Return minions that match via glob
targets()
Execute the correct tgt_type routine and return
Parses lines from the SSH config to create roster targets.
| Parameters: | lines -- Individual lines from the ssh config file |
|---|---|
| Returns: | Dictionary of targets in similar style to the flat roster |
Return the targets from the flat yaml file, checks opts for location but defaults to /etc/salt/roster
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/roster/all/salt.roster.sshconfig.html