-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from isolovey/resolvers
Add resolvers section
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% for resolver in haproxy_resolvers %} | ||
resolvers {{ resolver.name }} | ||
{% for nameserver in resolver.nameservers %} | ||
nameserver {{ nameserver.name }} {{ nameserver.listen }} | ||
{% endfor %} | ||
{% if resolver.accepted_payload_size is defined -%} | ||
accepted_payload_size {{ resolver.accepted_payload_size }} | ||
{% endif %} | ||
{% if resolver.parse_resolv_conf is defined and resolver.parse_resolv_conf -%} | ||
parse-resolv-conf | ||
{% endif %} | ||
{% if resolver.hold is defined -%} | ||
{% for status, period in resolver.hold.items() -%} | ||
hold {{ status }} {{ period }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{% if resolver.resolve_retries is defined -%} | ||
resolve_retries {{ resolver.resolve_retries }} | ||
{% endif %} | ||
{% if resolver.timeout is defined -%} | ||
{% for event, time in resolver.timeout.items() -%} | ||
timeout {{ event }} {{ time }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{% endfor %} |