Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
e7b26735
Commit
e7b26735
authored
3 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Do not generate unnecessary nameserver A records
parent
d167a73b
No related branches found
No related tags found
1 merge request
!249
Support IPv6-only networks
Pipeline
#25227
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/float-infra-dns/templates/dns/infra.yml
+4
-0
4 additions, 0 deletions
roles/float-infra-dns/templates/dns/infra.yml
with
4 additions
and
0 deletions
roles/float-infra-dns/templates/dns/infra.yml
+
4
−
0
View file @
e7b26735
...
@@ -42,6 +42,8 @@
...
@@ -42,6 +42,8 @@
{
%
endif %
}
{
%
endif %
}
{
%
endfor %
}
{
%
endfor %
}
{
%
if d == mx_ns_domain %
}
{
# Only generate the nameservers' A records on the chosen zone #}
{
%
for h in services
[
'
dns'
]
.hosts | sort %
}
{
%
for h in services
[
'
dns'
]
.hosts | sort %
}
{
%
set host_ip4 = hostvars
[
h
][
'
public_ips'
]
|
ansible.netcommon.ipv4 %
}
{
%
set host_ip4 = hostvars
[
h
][
'
public_ips'
]
|
ansible.netcommon.ipv4 %
}
{
%
set host_ip6 = hostvars
[
h
][
'
public_ips'
]
|
ansible.netcommon.ipv6 %
}
{
%
set host_ip6 = hostvars
[
h
][
'
public_ips'
]
|
ansible.netcommon.ipv6 %
}
...
@@ -55,6 +57,8 @@
...
@@ -55,6 +57,8 @@
{
%
endfor %
}
{
%
endfor %
}
{
%
endif %
}
{
%
endif %
}
{
%
endif %
}
{
%
for service_name
,
s in services|dictsort %
}
{
%
for service_name
,
s in services|dictsort %
}
{
# Iterate over the HTTP endpoints #}
{
# Iterate over the HTTP endpoints #}
{
%
for pe in s.get('public_endpoints'
,
[]
) if pe.get('name') and not pe.get('skip_dns'
,
False) %
}
{
%
for pe in s.get('public_endpoints'
,
[]
) if pe.get('name') and not pe.get('skip_dns'
,
False) %
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment