summaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/named.conf
diff options
context:
space:
mode:
authorLénaïc Huard <lhuard@amadeus.com>2016-01-18 16:28:55 +0100
committerLénaïc Huard <lhuard@amadeus.com>2016-02-04 18:20:03 +0100
commit82d474d7b1ba564f051c1ccf125413f4cca28d42 (patch)
tree0824401bf9beb36f4e137827177e988070b51981 /roles/dns/templates/named.conf
parent73ab565d036b6f3c8777d305fdc1a5029b097f88 (diff)
downloadopenshift-82d474d7b1ba564f051c1ccf125413f4cca28d42.tar.gz
openshift-82d474d7b1ba564f051c1ccf125413f4cca28d42.tar.bz2
openshift-82d474d7b1ba564f051c1ccf125413f4cca28d42.tar.xz
openshift-82d474d7b1ba564f051c1ccf125413f4cca28d42.zip
Add a DNS server on OpenStack clusters
Diffstat (limited to 'roles/dns/templates/named.conf')
-rw-r--r--roles/dns/templates/named.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/dns/templates/named.conf b/roles/dns/templates/named.conf
new file mode 100644
index 000000000..22c1ff935
--- /dev/null
+++ b/roles/dns/templates/named.conf
@@ -0,0 +1,23 @@
+options
+{
+ directory "/var/named";
+
+ allow-query { {{ ansible_default_ipv4.network }}/24; };
+
+ recursion yes;
+
+{% if dns_forwarders is defined %}
+ forwarders {
+ {% for dns in dns_forwarders %}
+ {{ dns }};
+ {% endfor %}
+ };
+{% endif %}
+};
+{% for zone in dns_zones %}
+
+zone "{{ zone }}" IN {
+ type master;
+ file "openshift-cluster.zone";
+};
+{% endfor %}