Skip to content

Commit

Permalink
Use ansible.utils.ipwrap when configuring DNS forward
Browse files Browse the repository at this point in the history
When the cifmw_external_dns role configures a DNS
forward and the DNS server is at an IPv6 address
we get an invalid configuration unless the IPv6
address is correctly wrapped in brackets. This
patch uses ansible.utils.ipwrap to fix that.

Jira: https://issues.redhat.com/browse/OSPRH-8893

Signed-off-by: John Fulton <[email protected]>
  • Loading branch information
fultonj authored and openshift-merge-bot[bot] committed Jul 24, 2024
1 parent efbb21f commit 6c1c0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/cifmw_external_dns/tasks/dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
forwardPlugin:
policy: Random
upstreams:
- "{{ cifmw_external_dns_masq_cluster_ip }}:53"
- "{{ cifmw_external_dns_masq_cluster_ip | ansible.utils.ipwrap }}:53"
name: "{{ cifmw_external_dns_name }}"
zones:
- "{{ cifmw_external_dns_domain }}"
Expand Down

0 comments on commit 6c1c0ee

Please sign in to comment.