]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: overload the nginx configuration in vars file
authorAlfredo Deza <adeza@redhat.com>
Thu, 21 Jul 2016 16:43:30 +0000 (12:43 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 22 Jul 2016 12:09:44 +0000 (08:09 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/vars/load-balance-vars.yml

index d9d953971f64be8a7303f0c5eb62d165bf7dc748..dfaf94eb7de186a89f491be4491a8cdeb94e6637 100644 (file)
@@ -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"