forked from Oefenweb/ansible-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Oefenweb#133 from drwahl/cachesection
Add support for haproxy caching
- Loading branch information
Showing
4 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% if cache is defined %} | ||
{% for cache in haproxy_cache %} | ||
cache {{ cache.name }} | ||
{% if cache.total_max_size is defined %} | ||
total-max-size {{ cache.total_max_size }} | ||
{% endif %} | ||
{% if cache.max_object_size is defined %} | ||
max-object-size {{ cache.max_object_size }} | ||
{% endif %} | ||
{% if cache.max_age is defined %} | ||
max-age {{ cache.max_age }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} |
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,14 @@ | ||
{% if haproxy_program is defined %} | ||
{% for program in haproxy_program %} | ||
program {{ program.name }} | ||
{% if program.command is defined %} | ||
command {{ program.command }} | ||
{% endif %} | ||
{% for option in program.option | default([]) %} | ||
option {{ option }} | ||
{% endfor %} | ||
{% for option in program.no_option | default([]) %} | ||
no option {{ option }} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} |