mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 17:50:23 +00:00
70 lines
2.2 KiB
Text
70 lines
2.2 KiB
Text
{% set protocol = salt['pillar.get']('bind:config:protocol', False) -%}
|
|
{% set param = [] -%}
|
|
{% if protocol -%}
|
|
{{ param.append('-' + protocol|string) }}
|
|
{% endif -%}
|
|
## Path: Network/DNS/Name Server
|
|
## Description: Names server settings
|
|
|
|
## Type: yesno
|
|
## Default: yes
|
|
## ServiceRestart: lwresd,named
|
|
#
|
|
# Shall the DNS server 'named' or the LightWeight RESolver Daemon, lwresd run
|
|
# in the chroot jail /var/lib/named/?
|
|
#
|
|
# Each time you start one of the daemons with the init script, /etc/named.conf,
|
|
# /etc/named.conf.include, /etc/rndc.key, and all files listed in
|
|
# NAMED_CONF_INCLUDE_FILES will be copied relative to /var/lib/named/.
|
|
#
|
|
# The pid file will be in /var/lib/named/var/run/named/ and named named.pid
|
|
# or lwresd.pid.
|
|
#
|
|
NAMED_RUN_CHROOTED="yes"
|
|
|
|
## Type: string
|
|
## Default: ""
|
|
## ServiceRestart: lwresd,named
|
|
#
|
|
# Additional arguments when starting the name daemon with the init script
|
|
# /etc/init.d/named or rcnamed.
|
|
#
|
|
# For example "-n 2" to use two CPUs if named is unable to determine the
|
|
# number of available CPUs.
|
|
#
|
|
# See man 8 named for all available commandline options.
|
|
#
|
|
# "-t /var/lib/named/var" is added if NAMED_RUN_CHROOTED is set to yes.
|
|
#
|
|
# "-u named" is used in any case by the init script to run the named daemon as
|
|
# user 'named' after completing privileged operations.
|
|
#
|
|
NAMED_ARGS="{{ param|join(' ') }}"
|
|
## Type: string
|
|
## Default: ""
|
|
## ServiceReload: named
|
|
#
|
|
# All mentioned config files will be copied relativ to /var/lib/named/, when
|
|
# 'named' is started in the chroot jail.
|
|
#
|
|
# /etc/named.conf and /etc/rndc.key are always copied. Also all files from
|
|
# include statements in named.conf.
|
|
#
|
|
# Filenames can be relative to /etc/named.d/.
|
|
#
|
|
# Please take care of the order if one file needs a setting of another.
|
|
#
|
|
# Example: "/etc/named-dhcpd.key ldap.dump rndc-access.conf"
|
|
#
|
|
NAMED_CONF_INCLUDE_FILES="{{ map.local_config }} {{ salt['pillar.get']('bind:config:includes', [])|join(' ') }}"
|
|
|
|
## Type: string
|
|
## Default: "createNamedConfInclude"
|
|
## ServiceReload: named
|
|
#
|
|
# Programms to be executed each time the DNS server 'named' is started or
|
|
# reloaded.
|
|
#
|
|
# Filenames can be relative to /usr/share/bind/.
|
|
#
|
|
NAMED_INITIALIZE_SCRIPTS="createNamedConfInclude"
|