From: Frank Brehm Date: Wed, 9 Mar 2016 18:13:14 +0000 (+0100) Subject: Adding config files for master and slave zones. X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=975c6c7422bb7dc5cd5ee39f35085a208ec076e2;p=salt%2Fstates.git Adding config files for master and slave zones. --- diff --git a/bind/conf.sls b/bind/conf.sls index 00dd568..195bcc7 100644 --- a/bind/conf.sls +++ b/bind/conf.sls @@ -1,4 +1,5 @@ {%- set etc_dir = salt['pillar.get']('bind:etc-dir', '/etc/bind') -%} +{%- set home_dir = salt['pillar.get']('bind:home-dir', '/var/cache/bind') -%} bind-conf_acl: file.managed: @@ -59,5 +60,30 @@ bind-conf_local: - file: bind-etc-dir - file: bind-conf_zones.rfc1918 +bind-conf_pri: + file.managed: + - name: {{ etc_dir }}/named-pri.conf + - source: salt://bind/files/named-pri.conf + - user: root + - group: root + - mode: 644 + - template: jinja + - backup: minion + - require: + - file: bind-etc-dir + - file: bind-zones-dir + +bind-conf_sec: + file.managed: + - name: {{ etc_dir }}/named-sec.conf + - source: salt://bind/files/named-sec.conf + - user: root + - group: root + - mode: 644 + - template: jinja + - backup: minion + - require: + - file: bind-etc-dir + - file: bind-home-dir # vim: filetype=sls diff --git a/bind/files/named-pri.conf b/bind/files/named-pri.conf new file mode 100644 index 0000000..8c01ea8 --- /dev/null +++ b/bind/files/named-pri.conf @@ -0,0 +1,15 @@ +{%- set etc_dir = salt['pillar.get']('bind:etc-dir', '/etc/bind') -%} +//############################################################### +//# Bind9-Konfigurationsdatei - Primäre Zonen +//# {{ etc_dir }}/named-pri.conf +//# +//# Host {{ grains['fqdn'] }} +//# +//############################################################### + +//############################################################### +//# Master-Zonen (Primary) + +// Keine! + +# vim: ts=4 filetype=named noai diff --git a/bind/files/named-sec.conf b/bind/files/named-sec.conf new file mode 100644 index 0000000..9664dab --- /dev/null +++ b/bind/files/named-sec.conf @@ -0,0 +1,15 @@ +{%- set etc_dir = salt['pillar.get']('bind:etc-dir', '/etc/bind') -%} +//############################################################### +//# Bind9-Konfigurationsdatei - Sekundäre Zonen +//# {{ etc_dir }}/named-sec +//# +//# Host {{ grains['fqdn'] }} +//# +//############################################################### + +//############################################################### +//# Slave-Zonen (Secondary) + +// Keine! + +# vim: ts=4 filetype=named noai