]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Adding config files for master and slave zones.
authorFrank Brehm <frank@brehm-online.com>
Wed, 9 Mar 2016 18:13:14 +0000 (19:13 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 9 Mar 2016 18:13:14 +0000 (19:13 +0100)
bind/conf.sls
bind/files/named-pri.conf [new file with mode: 0644]
bind/files/named-sec.conf [new file with mode: 0644]

index 00dd568c3c3ff4fefe9c70b75161c2597ebf4928..195bcc7b7077457ad73f4fe6d71a4caf05a9f595 100644 (file)
@@ -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 (file)
index 0000000..8c01ea8
--- /dev/null
@@ -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 (file)
index 0000000..9664dab
--- /dev/null
@@ -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