summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-07-28 18:28:48 +0200
committerGitHub <noreply@github.com>2017-07-28 18:28:48 +0200
commitbaf7f1e5c018cb39c3d5770f58e1371cb1da83be (patch)
tree5bf76b8f733013ba2e73c4235e246194e9558b0a
parent8c0d3ad55fd4a3cef414ef8490570ce1c7421fad (diff)
parentb3459298c194b51a83289eeda5be79ef818b788f (diff)
downloadopenshift-baf7f1e5c018cb39c3d5770f58e1371cb1da83be.tar.gz
openshift-baf7f1e5c018cb39c3d5770f58e1371cb1da83be.tar.bz2
openshift-baf7f1e5c018cb39c3d5770f58e1371cb1da83be.tar.xz
openshift-baf7f1e5c018cb39c3d5770f58e1371cb1da83be.zip
Merge pull request #591 from day4skiing/dnspri-wildcard
Add wildcard record for Private DNS
-rw-r--r--playbooks/provisioning/openstack/openstack_dns_records.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/openstack_dns_records.yml b/playbooks/provisioning/openstack/openstack_dns_records.yml
index 980221ed6..3672a8ea6 100644
--- a/playbooks/provisioning/openstack/openstack_dns_records.yml
+++ b/playbooks/provisioning/openstack/openstack_dns_records.yml
@@ -4,6 +4,11 @@
private_records: "{{ private_records | default([]) + [ { 'type': 'A', 'hostname': hostvars[item]['ansible_hostname'], 'ip': hostvars[item]['private_v4'] } ] }}"
with_items: "{{ groups['cluster_hosts'] }}"
+- name: "Add wildcard records to the private A records for infrahosts"
+ set_fact:
+ private_records: "{{ private_records | default([]) + [ { 'type': 'A', 'hostname': '*.' + openshift_app_domain, 'ip': hostvars[item]['private_v4'] } ] }}"
+ with_items: "{{ groups['infra_hosts'] }}"
+
- name: "Set the private DNS server to use the external value (if provided)"
set_fact:
nsupdate_server_private: "{{ external_nsupdate_keys['private']['server'] }}"