summaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/openshift-cluster.zone
blob: 03f5dc08917a3182fac48e035a86345f4c76d34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 %}