Skip to content

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

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Flexible configuration syntax #107

wants to merge 17 commits into from

Conversation

benwebber
Copy link
Collaborator

@benwebber benwebber commented Nov 28, 2017

Changes:

  • Replaces role variable interface with a flexible, map-based interface. Refer to the README for how we parse role variables.
  • Eliminates individual templates in favour of single haproxy.cfg template.
  • Adds support for mailers and peers 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

@ktibi
Copy link

ktibi commented Jan 9, 2018

Hi,
News about this PR ?

@r-daneel
Copy link
Collaborator

r-daneel commented Feb 9, 2018

This is a heavy rewrite that looks quiet interesting.
Will have a look in the coming days (time is scarce).

@k3nny0ne
Copy link

k3nny0ne commented Mar 3, 2018

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() %}
Copy link

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

@benwebber
Copy link
Collaborator Author

@k3nny0ne Sorry for keeping you waiting. I missed your review. I'll address your feedback today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants