feat(redhat): set NAMEDCONF file in sysconfig

Add the possibility to set named config file into sysconfig default file
This commit is contained in:
Richard Groux 2024-09-20 18:06:33 +02:00 committed by rgroux
parent c3b1fb43e7
commit 87f09e4dca
No known key found for this signature in database
GPG key ID: 44A6C105C10D8549

View file

@ -6,4 +6,8 @@
# ROOTDIR="/var/named/chroot"
# KEYTAB_FILE="/dir/file"
# DISABLE_ZONE_CHECKING
{% set sysconfigfile = salt['pillar.get']('bind:lookup:config', False) -%}
{% if sysconfigfile -%}
NAMEDCONF={{ sysconfigfile }}
{% endif -%}
OPTIONS="{{ param|join(' ') }}"