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:
parent
5adb9c2075
commit
aa9929b817
@ -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 ######
|
||||
############################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user