mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00

To process hash entries in deterministic order.
Without this patch, config entries were different for every run
and required a service restart when nothing actually changed.
Doing it similar to
0fe2f7e66b
19 lines
669 B
Text
19 lines
669 B
Text
options {
|
|
default-key "{{salt['pillar.get']('bind:rndc_client:options:default:key', 'rndc_key') }}";
|
|
default-server "{{salt['pillar.get']('bind:rndc_client:options:default:server', 'localhost') }}";
|
|
default-port {{salt['pillar.get']('bind:rndc_client:options:default:port', '953') }};
|
|
};
|
|
|
|
|
|
{% for key,args in salt['pillar.get']('bind:rndc_client:server', {})|dictsort -%}
|
|
server "{{ key }}" {
|
|
key {{ args['key'] }};
|
|
};
|
|
{% endfor %}
|
|
|
|
{% for key,args in salt['pillar.get']('bind:keys', {})|dictsort -%}
|
|
key "{{ key }}" {
|
|
algorithm {{ args['algorithm'] | default('HMAC-MD5.SIG-ALG.REG.INT') }};
|
|
secret "{{ args['secret'] }}";
|
|
};
|
|
{% endfor %}
|