From 2c9348963328b12186f8b298468eab06c08de98f Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 21 Jul 2016 12:43:30 -0400 Subject: [PATCH] ansible: overload the nginx configuration in vars file Signed-off-by: Alfredo Deza --- ansible/vars/load-balance-vars.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/ansible/vars/load-balance-vars.yml b/ansible/vars/load-balance-vars.yml index d9d95397..dfaf94eb 100644 --- a/ansible/vars/load-balance-vars.yml +++ b/ansible/vars/load-balance-vars.yml @@ -1,11 +1,16 @@ --- -# These values make the nginx role configure `nginx.conf` for load balancing -# the shaman IPs. -nginx_upstreams: - - name: "shaman" - fqdn: "shaman.ceph.com" - strategy: "least_conn" - servers: - - "{{ shaman_node1_ip }}" - - "{{ shaman_node2_ip }}" +# These values allow the nginx role to fully configure load balancing and +# regular hosts. +nginx_hosts: + - fqdn: "grafana.ceph.com" + app_name: "grafana" + proxy_pass: "http://127.0.0.1:3000" + - fqdn: "shaman.ceph.com" + app_name: "shaman" + upstreams: + name: "shaman" + strategy: "least_conn" + servers: + - "1.shaman.ceph.com" + - "2.shaman.ceph.com" -- 2.39.5