Skip to content

Do not include non provisioned nodes #79

@obazoud

Description

@obazoud

Hi,

When a node is defined in a Chef server but not yet provisioned, ip address is not set.
The HAProxy configuration is wrong and prevents the service to start.

As you can see, there are no ip in this case:

backend servers-http
  server  :8080 weight 1 maxconn 100 check

So at lthis line https://github.com/hw-cookbooks/haproxy/blob/master/recipes/app_lb.rb#L28, pool_members without ipaddress should be excluded.

Thoughts ?
Olivier.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions