0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2026-03-07 02:51:06 +01:00

Add support for returner config block

This commit is contained in:
Tom Lejeune 2026-02-09 03:59:54 +02:00
parent 5adb9c2075
commit aa9929b817
No known key found for this signature in database
GPG Key ID: FF66269F0B3462ED

View File

@ -1743,7 +1743,22 @@ win_gitrepos:
# Which returner(s) will be used for minion's result:
#return: mysql
{{ get_config('return', '')}}
{%- if 'returner_config' in cfg_master %}
{%- do default_keys.append('returner_config') %}
{%- for key, value in cfg_master['returner_config'].items() %}
{{ key }}: {{ value }}
{%- endfor %}
{%- elif 'returner_config' in cfg_salt %}
{%- for key, value in cfg_salt['returner_config'].items() %}
{{ key }}: {{ value }}
{%- endfor %}
{%- else %}
# mysql.host: 'salt'
# mysql.user: 'salt'
# mysql.pass: 'salt'
# mysql.db: 'salt'
# mysql.port: 3306
{%- endif %}
###### Miscellaneous settings ######
############################################