-
Notifications
You must be signed in to change notification settings - Fork 266
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
Feature/make configvalidation configurable #238
Conversation
Sorry for the failed checks. I will have a look on it. |
@mms-gianni Thanks for your efforts, they are very much appreciated. I would personally rather like to see this functionality as a boolean, rather than a path that you set to undef to disable. @hunner @bmjen do you have any thoughts here? Perhaps there is another underlying issues here where validation shouldn't need to be disabled? @mms-gianni Perhaps you could give a little more background information to the problem you were having? Thanks! |
@jonnytpuppet I don't know, if it only occurs on our config or if it is a general problem. This is how we have configured our HaProxy:
This ends in following Puppet error: To apply changes we had to stop HaProxy prior to run Puppet agent. Using a boolean was also my first thought. But I was not sure if the HaProxy binary is on the same place in every distribution. Adding two parameters would be a solution too. One boolean and one string. But since the config is only necessary when you want to activate the validation, I put them together. |
How about we convert this to use a boolean, and leave the path to the binary unchanged, for now. As you say, we can always create another parameter for the actual path in the future :) @bmjen Do you think I'm being too fussy here, or do you think a boolean would be neater, given the author's concerns about the path maybe being different on other OSes (we haven't crossed that bridge yet though) Cheers JT |
How about keeping the variable with a boolean and add a path variable. I think this would be the cleanest solution. |
Sorry for the commit massacre. I will squash the commits when it is ok for you. |
@mms-gianni I wonder if it's due to #243 as it should not be trying to bind to a running port |
@@ -131,6 +140,8 @@ | |||
validate_string($service_options) | |||
validate_hash($global_options, $defaults_options) | |||
validate_absolute_path($config_dir) | |||
validate_bool($config_validate) | |||
validate_string($config_validate_path) |
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.
This should be validate_absolute_path
@mms-gianni The errant validate_cmd execution should be addressed by #243 . Which correctly calls haproxy with a -c command and shouldn't impact your running instance. |
We had an issue with the validation of the haproxy(1.5.8-3) configuration on Debian(7.10)
It was no able to validate as long the haproxy was running.
Starting proxy HOSTNAME: cannot bind socket [xx.xx.xx.xx:80]