episode-45 icon indicating copy to clipboard operation
episode-45 copied to clipboard

haproxy.cfg.j2 file require tweaking to work with haproxy 1.6.3

Open it-praktyk opened this issue 7 years ago • 1 comments

HA-Proxy version 1.6.3 2015/12/25 Ubuntu 16.04.2 LTS

root@lb:/etc/haproxy# haproxy -f ./haproxy.cfg                                                           
[ALERT] 066/202309 (8076) : parsing [./haproxy.cfg:38] : 'listen' cannot handle unexpected argument '10.0.2.15:80'.                                                                                               
[ALERT] 066/202309 (8076) : parsing [./haproxy.cfg:38] : please use the 'bind' keyword for listening addresses.                                                                                                   │root@web1:/home/vagrant# dd if=zero of=/zero ^C
[ALERT] 066/202309 (8076) : Error(s) found in configuration file : ./haproxy.cfg                         
[WARNING] 066/202309 (8076) : config : proxy 'episode46' has no 'bind' directive. Please declare it as a backend if this was intended.                                                                            
[WARNING] 066/202309 (8076) : config : missing timeouts for proxy 'episode46'.                           
   | While not properly invalid, you will certainly encounter various problems                           
   | with such a configuration. To fix this, please ensure that all following                            
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.                                
[ALERT] 066/202309 (8076) : Fatal errors found in configuration.

it-praktyk avatar Mar 08 '17 20:03 it-praktyk

I triggered this on episode 46:

TASK [deploy haproxy config] **************************************************************************************
fatal: [lb]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'lb'"}
	to retry, use: --limit @/home/vagrant/e46-site.retry

svandragt avatar Apr 01 '19 15:04 svandragt