mc_bind / named/bind functions

mc_states.modules.mc_bind.cached_zone_headers()

Store a cached but much small memory footprint version of all zones data for quickier access to construct views in main bind configuration. Those keys are enabled:

  • views
  • server_type
  • fqdn
  • masters
  • slaves
  • fpath
  • template
  • source
mc_states.modules.mc_bind.get_view(view)

Get the mapping describing a bind view

zones
light mapping containing zone headers to feed the views configuration file. See cached_zone_headers
match_clients
[any]
recursion
no
additional_from_auth
no
additional_from_cache
no
mc_states.modules.mc_bind.get_zone(zone)

Get the mapping describing a bind zone

views
list of views to enable this zone in
serial
zone serial
server_type
one of master/slave
ttl
TTL of soa
fqdn
zone FQDN
soa_ns
zone main nameserver (ns.{fqdn})
soa_contact
soa contact (sysadmin.{fqdn})
refresh
refresh(300)
retry
retry(60)
expire
expire ()
minimum
minimum (300)
notify
notify (true in mastermode and false if slave)
rrs
records for the zone in mastermode. This list list of records of the zone is in bind syntax
slaves
list of slaves to allow transfer to in master mode
masters
list of master to get zones from in slave mode
allow_transfer
list of transfer items
allow_query
list of query items
allow_update
list of update items
mc_states.modules.mc_bind.settings()

Named settings

Without further configuration, this will setup a caching name server. With a little effort, you can easily turn this server in a powerful and flexible nameserver.

pkgs
pkg to install for a named install
config
master config file path
local_config
local master config file path
options_config
options config file path
default_zones_config
default zone config file path
dnssec
do we use dnssec (not implemented now)
named_directory
var directory
user
user for named service (root)
group
group for named service (named)
service_name
service name
mode
configuration files mode (‘640’)
views
List of managed view names
zones
List of managed zones names
serial
2014030501
slaves
default dns server slaves if any
ttl
300
refresh
300
retry
60
expire
2419200
minimum
299
rndc_conf
path to rndc configuration
rndc_key
path to rndc key
servers_config_template
salt://makina-states/files/etc/bind/named.conf.servers
key_config_template
{{settingsnsalt://makina-states/files/etc/bind/named.conf.key
bind_config_template
salt://makina-states/files/etc/bind/named.conf
local_config_template
salt://makina-states/files/etc/bind/named.conf.local
options_config_template
salt://makina-states/files/etc/bind/named.conf.options’
logging_zones_config_template
salt://makina-states/files/etc/bind/named.conf.logging
default_zones_config_template
salt://makina-states/files/etc/bind/named.conf.default-zones
zone_template
salt://makina-states/files/etc/bind/pri_zone.zone

loglevel

default
error
general
error
database
error
config
error
security
error
resolver
error
xfer_in
nfo
xfer_out
info
notify
error
client
error
unmatched
error
queries
error
network
error
update
info
dispatch
error
lame_servers
error