| provisioner "chef" { | |
| run_list = ["something"] | |
| node_name = "something" | |
| attributes { | |
| "haproxy" { | |
| "servers" = [{ | |
| "name" = "first" | |
| "ip" = "$(openstack_compute_instance_v2.web1.access_ip_v4)" | |
| "port" = "80" | |
| "maxconn" = "20" | |
| "weight" = "50" | |
| }, | |
| { | |
| "name" = "second" | |
| "ip" = "$(openstack_compute_instance_v2.web2.access_ip_v4)" | |
| "port" = "80" | |
| "maxconn" = "20" | |
| "weight" = "50" | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment