|
|
|
|
|
|
|
|
{% set cfg_master = cfg_salt.get('master', {}) -%} |
|
|
{% set cfg_master = cfg_salt.get('master', {}) -%} |
|
|
{%- macro get_config(configname, default_value) -%} |
|
|
{%- macro get_config(configname, default_value) -%} |
|
|
{%- if configname in cfg_master -%} |
|
|
{%- if configname in cfg_master -%} |
|
|
{{ configname }}: {{ cfg_master[configname] }} |
|
|
|
|
|
|
|
|
{{ configname }}: {{ cfg_master[configname]|json }} |
|
|
{%- elif configname in cfg_salt and configname not in reserved_keys -%} |
|
|
{%- elif configname in cfg_salt and configname not in reserved_keys -%} |
|
|
{{ configname }}: {{ cfg_salt[configname] }} |
|
|
|
|
|
|
|
|
{{ configname }}: {{ cfg_salt[configname]|json }} |
|
|
{%- else -%} |
|
|
{%- else -%} |
|
|
#{{ configname }}: {{ default_value }} |
|
|
|
|
|
|
|
|
#{{ configname }}: {{ default_value|json }} |
|
|
{%- endif -%} |
|
|
{%- endif -%} |
|
|
{%- endmacro -%} |
|
|
{%- endmacro -%} |
|
|
{%- from 'salt/formulas.jinja' import file_roots, formulas with context -%} |
|
|
{%- from 'salt/formulas.jinja' import file_roots, formulas with context -%} |