-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
confd: haproxy: optional log-format #687
Conversation
ok, thanks @jimnydev |
The We don't need to duplicate the log-format in each listen section. This will simplify the configuration and reduce the amount of repetitive code. @jimnydev Please check it out. |
ade4765
to
666a9a0
Compare
Sure, I initially tried to implement this with least changes to existing setup. Defining Thanks! |
@jimnydev, Hi, I tested your branch with the proposed solution.
The error will be as follows:
The error lies in the fact that if you remove the comment, there will be a space before defining the variable, which is an error for the YAML format, not many novice ansible users will be able to understand why they have an error, please correct it. If you fix the semantics error, in this case the playbook works, everything is output to the log as needed in JSON format:
|
Of course, pushed an update for that. I used my IDE to (un)comment out the block - and it automatically updates identation for yaml as well - I guess that's why I missed it. Thank you! EDIT: now yaml lint is failing :) |
New optional var for haproxy log-format. Supplied with an example of JSON structured log format (commented out by default).