Added file rndc.conf

This commit is contained in:
Piotr Pieprzycki 2017-11-02 10:13:02 +00:00
parent 692f1434ed
commit 1a0c999e10

View file

@ -0,0 +1,22 @@
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') }};
};
server sdns-odc-1.net.onet { key rndc_sdns-odc-1.net.onet; };
{% for key,args in salt['pillar.get']('bind:rndc_client:server', {}).items() -%}
server "{{ key }}" {
key {{ args['key'] }};
};
{% endfor %}
{% for key,args in salt['pillar.get']('bind:keys', {}).items() -%}
key "{{ key }}" {
algorithm {{ args['algorithm'] | default('HMAC-MD5.SIG-ALG.REG.INT') }};
secret "{{ args['secret'] }}";
};
{% endfor %}