Ver código fonte

Merge pull request #332 from mchugh19/indenting

peer run space and jason to yaml
tags/v0.57.0
Niels Abspoel 7 anos atrás
pai
commit
24998a4a0b
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 12 adições e 11 exclusões
  1. +12
    -11
      salt/files/master.d/f_defaults.conf

+ 12
- 11
salt/files/master.d/f_defaults.conf Ver arquivo

{% if 'peer_run' in cfg_master %} {% if 'peer_run' in cfg_master %}
{%- do default_keys.append('peer_run') %} {%- do default_keys.append('peer_run') %}
peer_run: peer_run:
{% for name, roots in cfg_master['peer_run'].items() %}
{%- for name, roots in cfg_master['peer_run'].items() %}
{{ name }}: {{ name }}:
{% for mod in roots %}
{%- for mod in roots %}
- {{ mod }} - {{ mod }}
{% endfor %}
{% endfor %}
{% elif 'peer_run' in cfg_salt %}
{%- endfor %}
{%- endfor %}
{%- elif 'peer_run' in cfg_salt %}
peer_run: peer_run:
{% for name, roots in cfg_salt['peer_run'].items() %}
{%- for name, roots in cfg_salt['peer_run'].items() %}
{{ name }}: {{ name }}:
{% for mod in roots %}
{%- for mod in roots %}
- {{ mod }} - {{ mod }}
{% endfor %}
{% endfor %}
{% endif %}
{%- endfor %}
{%- endfor %}
{%- endif %}


##### Mine settings ##### ##### Mine settings #####
##################################### #####################################


{%- for configname in cfg_master %} {%- for configname in cfg_master %}
{%- if configname not in reserved_keys and configname not in default_keys %} {%- if configname not in reserved_keys and configname not in default_keys %}
{{ configname }}: {{ cfg_master[configname]|json }}
{{ configname }}:
{{ cfg_master[configname]| yaml(False) | indent(2) }}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}

Carregando…
Cancelar
Salvar