summaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/openshift-cluster.zone
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2016-02-04 16:27:31 -0500
committerThomas Wiest <twiest@users.noreply.github.com>2016-02-04 16:27:31 -0500
commitb25ad7c7462c1ead726fa998e99b12a0c4da8676 (patch)
treeaba2da336673022ed2525bbbbd6952df334b79f8 /roles/dns/templates/openshift-cluster.zone
parenta467f94a0157eaee88900dd466dd79dab2befa52 (diff)
parent82d474d7b1ba564f051c1ccf125413f4cca28d42 (diff)
downloadopenshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.gz
openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.bz2
openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.tar.xz
openshift-b25ad7c7462c1ead726fa998e99b12a0c4da8676.zip
Merge pull request #1206 from lhuard1A/openstack_dns
Add a DNS server on OpenStack clusters
Diffstat (limited to 'roles/dns/templates/openshift-cluster.zone')
-rw-r--r--roles/dns/templates/openshift-cluster.zone14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/dns/templates/openshift-cluster.zone b/roles/dns/templates/openshift-cluster.zone
new file mode 100644
index 000000000..03f5dc089
--- /dev/null
+++ b/roles/dns/templates/openshift-cluster.zone
@@ -0,0 +1,14 @@
+$TTL 1d
+@ IN SOA {{ ansible_hostname }} openshift (
+ {{ ansible_date_time.epoch }} ; Serial (To be fixed before 2039)
+ 12h ; Refresh
+ 3m ; Retry
+ 4w ; Expire
+ 3h ; TTL for negative replies
+ )
+
+ IN NS {{ ansible_hostname }}
+{{ ansible_hostname }} IN A {{ ansible_default_ipv4.address }}
+{% for host in dns_all_hosts %}
+{{ hostvars[host].ansible_hostname }} IN A {{ hostvars[host]['ansible_default_ipv4'].address }}
+{% endfor %}