Skip to content
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

Add support for filter option for proxies. #111

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

mjbnz
Copy link
Contributor

@mjbnz mjbnz commented Jun 30, 2020

Very simply add support for haproxy content filters to be specified.

I'm using this to create an spoe filter on a backend successfully.

@mjbnz
Copy link
Contributor Author

mjbnz commented Aug 11, 2020

Hello, any chance that this PR might be accepted?

README.md Outdated Show resolved Hide resolved
@tersmitten tersmitten added this to the 6.10.0 milestone Sep 25, 2020
@@ -23,6 +23,9 @@ backend {{ backend.name }}
{% if backend.cookie is defined %}
cookie {{ backend.cookie }}
{% endif %}
{% for filter in backend.filter | default([]) %}
filter {{ filter.name }}{{ filter.params is defined | ternary([''] + [filter.params], []) | join(' ') }}
{% endfor %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to use something like this:

{% for param in server.param | default([]) %} {{ param }}{% endfor %}

I find that a bit easier to read.

Copy link
Contributor Author

@mjbnz mjbnz Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained in another of my PR's (#113 ), Ansible has trim_blocks enabled, so that format requires the presence of an unexplained blank line after the conditional. the line I used above avoids that.

@tersmitten tersmitten merged commit b760f8e into Oefenweb:master Nov 30, 2021
@mjbnz mjbnz deleted the add-filter-option branch March 8, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants