fix: sort extra options in configuration
Ensure extra options in generated configuration is sorted, to ensure stable configuration.
This commit is contained in:
parent
99b14699f3
commit
89cdcec595
|
@ -1821,7 +1821,7 @@ alternative.mongo.{{ name }}: {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- for configname in cfg_master %}
|
{%- for configname in cfg_master|sort %}
|
||||||
{%- 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 }}:
|
{{ configname }}:
|
||||||
{{ cfg_master[configname]| yaml(False) | indent(2) }}
|
{{ cfg_master[configname]| yaml(False) | indent(2) }}
|
||||||
|
|
|
@ -1251,7 +1251,7 @@ alternative.mongo.{{ name }}: {{ value }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- for configname in cfg_minion %}
|
{%- for configname in cfg_minion|sort %}
|
||||||
{%- if configname not in reserved_keys and configname not in default_keys %}
|
{%- if configname not in reserved_keys and configname not in default_keys %}
|
||||||
{%- if cfg_minion[configname] is iterable and cfg_minion[configname] is not mapping and cfg_minion[configname] is not string %}
|
{%- if cfg_minion[configname] is iterable and cfg_minion[configname] is not mapping and cfg_minion[configname] is not string %}
|
||||||
{{ configname }}:
|
{{ configname }}:
|
||||||
|
|
Loading…
Reference in New Issue