[BUG] roster_defaults does not apply to targets absent from roster #58440
Labels
Bug
broken, incorrect, or confusing behavior
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
The
roster_defaults
key in the master config lets you set default values for targets. However, these defaults only get applied to targets that are in the roster, and not targets that are not in the roster. This is a bit confusing, becausesalt-ssh
works just fine otherwise if you provide a target that is an explicit hostname.Setup
This is easiest to demonstrate with an example where
roster_defaults
sets the port to something non-default that breaks. And two hostslisted
andunlisted
, only the first of which is explicitly listed in the roster.roster
master
Steps to Reproduce the behavior
salt-ssh listed test.ping
fails with an error, as expected (because nothing is listening on port 9999):salt-ssh unlisted test.ping
does not fail, it works just fine:Expected behavior
I would expect the unlisted target to apply the port setting from
roster_defaults
and fail the same way as the listed target.Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: