Default returners config option
There should be a config value, that would define default set of returners, that would be used, in case user haven't specified --returner= option.
That would be a great feature for a users that are using non default returners (mysql, redis) to make sure nobody would forget to add --retuner=mysql to every salt call.
I think this is a great idea. I'll discuss this with @thatch45 and see when we can get it in.
ext_job_cache: redis
Already in there :) It does seem that this needs to be documented though
Is there any chance there could be multiple default returners? ie: 1 for auditing something and 1 for something else? Just curious.
ext_job_cache seems like wierd name for default retuner option... But I'll try.
Definitely, it MUST be renamed to default_returners and it should handle multiple returners.
'ext_job_cache' is not completely obvious, but 'default_returners' totally is!
+1
I'm going to reopen this issue.
The problem with ext_job_cache is that it requires that an external job cache be set up for the Salt Master. If a user wishes to use Sentry as a returner, for example, then technically she would have to have an external job cache for the Salt Master, but that doesn't make sense in the case of Sentry returner.
+1
This should be addressed. The documentation clearly implies it works, when it does not. And the abilty to use these returners as an audit/notification log with things like hipchat and slack is non-existent. We would like to be able to notify everyone responsible that saltstack operations have occurred without writing a separate chunk of code to pull down the data from an external cache and push it in ourselves. ESPECIALLY SINCE MOST OF THE FUNCTION EXISTS IN SALTSTACK.
Can you point me to the documentation you're looking at @jnials ? All I could find was the config file option that seems to indicate that it works.
ZD-1070
https://docs.saltstack.com/en/latest/ref/returners/#event-returners Would be a good start. "For maximum visibility into the history of events across a Salt infrastructure, all events seen by a salt master may be logged to one or more returners."
that's followed by a list of all returners. Worse, because hipchat_returner is listed in that document and it has an event_return it clearly implies that hipchat_returner should work. I think you should probably do something to identify which ones can be used as part of the master event_return and which cannot.
Thanks, @jnials.
Per @thatch45 an option exists for the minion to set additional returners but it is broken. I am changing this issue to a bug so that we can fix the existing option.
We also need to document the option and fix the event-returners list here https://docs.saltstack.com/en/latest/ref/returners/#event-returners
This has been fixed by #38221