|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
{% if 'log_granular_levels' in master %} |
|
|
{% if 'log_granular_levels' in master %} |
|
|
log_granular_levels: |
|
|
log_granular_levels: |
|
|
{% for name, lvl in master['log_granular_levels'] %} |
|
|
|
|
|
|
|
|
{% for name, lvl in master['log_granular_levels'].items() %} |
|
|
{{ name }}: {{ lvl }} |
|
|
{{ name }}: {{ lvl }} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% elif 'log_granular_levels' in salt %} |
|
|
{% elif 'log_granular_levels' in salt %} |
|
|
log_granular_levels: |
|
|
log_granular_levels: |
|
|
{% for name, lvl in salt['log_granular_levels'] %} |
|
|
|
|
|
|
|
|
{% for name, lvl in salt['log_granular_levels'].items() %} |
|
|
{{ name }}: {{ lvl }} |
|
|
{{ name }}: {{ lvl }} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% else %} |
|
|
{% else %} |
|
|
|
|
|
|
|
|
# group2: 'G@os:Debian and foo.domain.com' |
|
|
# group2: 'G@os:Debian and foo.domain.com' |
|
|
{% if 'nodegroups' in master %} |
|
|
{% if 'nodegroups' in master %} |
|
|
nodegroups: |
|
|
nodegroups: |
|
|
{% for name, lvl in master['nodegroups'] %} |
|
|
|
|
|
|
|
|
{% for name, lvl in master['nodegroups'].items() %} |
|
|
{{ name }}: {{ lvl }} |
|
|
{{ name }}: {{ lvl }} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% elif 'nodegroups' in salt %} |
|
|
{% elif 'nodegroups' in salt %} |
|
|
nodegroups: |
|
|
nodegroups: |
|
|
{% for name, lvl in salt['nodegroups'] %} |
|
|
|
|
|
|
|
|
{% for name, lvl in salt['nodegroups'].items() %} |
|
|
{{ name }}: {{ lvl }} |
|
|
{{ name }}: {{ lvl }} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
{% endif %} |