-
Notifications
You must be signed in to change notification settings - Fork 97
Flexible configuration syntax #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Sort keys first by weight, then alphabetically. This avoids rewriting the configuration file on each run, particularly if Ansible users use different versions of Python (dictionaries are ordered in Python 3.6).
Hi, |
This is a heavy rewrite that looks quiet interesting. |
Any chance to merge it? |
{%- for request in requests -%} | ||
http-request {{ request.action }}{% if request.param is defined %} {{ request.param }}{% endif %}{% if request.condition is defined %} {{ request.condition }}{% endif %} | ||
{% else %} | ||
{% for name, options in (instances|dictsort(case_sensitive=True)).items() %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'items()' will produce error: AnsibleUndefinedVariable: 'list object' has no attribute 'items'
Vars:
haproxy_frontends:
rgw_http:
bind:
- ':80'
reqadd:
- 'X-Forwarded-Proto:\ http'
default_backend: rgw
@k3nny0ne Sorry for keeping you waiting. I missed your review. I'll address your feedback today. |
Changes:
haproxy.cfg
template.mailers
andpeers
sections.This changeset will significantly reduce maintenance work and user frustration, since users will not need to hack the role or submit pull requests to add new options.
This is a breaking change and will require a major release.
Resolves: #54, #56, #77, #87
Obsoletes: #105, #106