summaryrefslogtreecommitdiffstats
path: root/roles/hostnames/templates
diff options
context:
space:
mode:
authorØystein Bedin <bedin@redhat.com>2016-06-17 14:48:37 -0400
committerØystein Bedin <bedin@redhat.com>2016-06-17 14:48:37 -0400
commit3866232daed8ce1a48aa2db6f2f6c541e90756ec (patch)
tree8c49fc2769d3f6787393c210305021952bcf9298 /roles/hostnames/templates
parent99d3622ec4ed9f150a77be9c42839cf5db19c43a (diff)
downloadopenshift-3866232daed8ce1a48aa2db6f2f6c541e90756ec.tar.gz
openshift-3866232daed8ce1a48aa2db6f2f6c541e90756ec.tar.bz2
openshift-3866232daed8ce1a48aa2db6f2f6c541e90756ec.tar.xz
openshift-3866232daed8ce1a48aa2db6f2f6c541e90756ec.zip
Cleande up hostname role to make it more generic
Diffstat (limited to 'roles/hostnames/templates')
-rw-r--r--roles/hostnames/templates/records.template.yaml28
1 files changed, 0 insertions, 28 deletions
diff --git a/roles/hostnames/templates/records.template.yaml b/roles/hostnames/templates/records.template.yaml
deleted file mode 100644
index 2f2420464..000000000
--- a/roles/hostnames/templates/records.template.yaml
+++ /dev/null
@@ -1,28 +0,0 @@
----
-dns_records_add:
- - view: private
- zone: {{ dns_domain }}
- entries:
-{% for mst in groups['masters'] %}
- - type: A
- hostname: {{ hostvars[mst]['ansible_hostname'] }}
- ip: {{ hostvars[mst]['dns_private_ip'] }}
-{% endfor %}
-{% for node in groups['nodes'] %}
- - type: A
- hostname: {{ hostvars[node]['ansible_hostname'] }}
- ip: {{ hostvars[node]['dns_private_ip'] }}
-{% endfor %}
- - view: public
- zone: {{ dns_domain}}
- entries:
-{% for mst in groups['masters']%}
- - type: A
- hostname: {{ hostvars[mst]['ansible_hostname'] }}
- ip: {{ hostvars[mst]['dns_public_ip'] }}
-{% endfor %}
-{% for node in groups['nodes'] %}
- - type: A
- hostname: {{ hostvars[node]['ansible_hostname'] }}
- ip: {{ hostvars[node]['dns_public_ip'] }}
-{% endfor %}