cloudsidedev / appside

Multitenant environment automation.
http://cloudside.ch
GNU Affero General Public License v3.0
38 stars 7 forks source link

AnsibleUndefinedVariable: 'conf_haproxy_socket_path' is undefined #67

Closed ocean90 closed 7 years ago

ocean90 commented 7 years ago

Probably caused by https://github.com/ttssdev/appflow/commit/3f82c519d9fab7c41e35e084f722321f12d2fc08

$ appflow provision tags=haproxy
// …
TASK [lb : deploy /etc/haproxy/haproxy.cfg (Debian/RedHat family)] *************
fatal: [atlantis]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: 'conf_haproxy_socket_path' is undefined"}
    to retry, use: --limit @/Users/Dominik/Documents/webdev/appflow/playbooks/generic.retry
ivomarino commented 7 years ago

@ocean90 quite strange, it's defined here: https://github.com/ttssdev/appflow/blob/master/playbooks/vars/os/distribution/Debian.yml#L100 -- appflow update?

ocean90 commented 7 years ago

@ivomarino I actually got that error because of an appflow update.

➜  appflow git:(master) ack "conf_haproxy_socket_path"
playbooks/roles/lb/templates/etc/haproxy/haproxy-cfg.j2
11:    stats socket {{ conf_haproxy_socket_path }}/admin.sock mode 660 level admin

playbooks/vars/os/distribution/CentOS.yml
91:conf_haproxy_socket_path: "/var/lib/haproxy"

playbooks/vars/os/distribution/Debian.yml
100:conf_haproxy_socket_path: "/run/haproxy"
ivomarino commented 7 years ago

same happens here, checking. Seems that vars are not parsed for Ubuntu.