summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning
diff options
context:
space:
mode:
authorDan Jurgensmeyer <djurgens@redhat.com>2017-07-26 09:34:39 -0600
committerDan Jurgensmeyer <djurgens@redhat.com>2017-07-26 09:34:39 -0600
commitdbc08f8ee57c939ce20bc681150aa6ed4de46b50 (patch)
treee7f47773d064ffa6db478802b95845440750dd04 /playbooks/provisioning
parente27f85659b8b0dc2a6f94623b90a59e62edccd0c (diff)
downloadopenshift-dbc08f8ee57c939ce20bc681150aa6ed4de46b50.tar.gz
openshift-dbc08f8ee57c939ce20bc681150aa6ed4de46b50.tar.bz2
openshift-dbc08f8ee57c939ce20bc681150aa6ed4de46b50.tar.xz
openshift-dbc08f8ee57c939ce20bc681150aa6ed4de46b50.zip
Add wildcard pointer to Private DNS
Diffstat (limited to 'playbooks/provisioning')
-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 b5f0840c5..1e2ee3fe3 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]['openstack']['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'] }}"