jweissig / episode-45

Episode #45 - Learning Ansible with Vagrant
82 stars 91 forks source link

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

Open it-praktyk opened 7 years ago

it-praktyk commented 7 years ago

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.
svandragt commented 5 years ago

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