Add support for dns_etchosts (#6236)

This commit is contained in:
Mateus Caruccio
2020-06-26 04:03:31 -03:00
committed by GitHub
parent d3ca9d1db9
commit 1892cd65f6
6 changed files with 61 additions and 3 deletions

View File

@@ -17,6 +17,11 @@ data:
loadbalance
cache {{ block['cache'] | default(5) }}
reload
{% if dns_etchosts | default(None) %}
hosts /etc/coredns/hosts {
fallthrough
}
{% endif %}
}
{% endfor %}
{% endif %}
@@ -50,4 +55,13 @@ data:
loop
reload
loadbalance
{% if dns_etchosts | default(None) %}
hosts /etc/coredns/hosts {
fallthrough
}
{% endif %}
}
{% if dns_etchosts | default(None) %}
hosts: |
{{ dns_etchosts }}
{% endif %}