diff --git a/haproxy.sls b/haproxy.sls index d668d2d..9aeb23b 100644 --- a/haproxy.sls +++ b/haproxy.sls @@ -58,64 +58,31 @@ haproxy: refresh: "20s" frontends: frontend1: - name: radosgw - bind: "*:7480" - default_backend: radosgw-backend - frontend2: name: www bind: "*:80" - default_backend: ceph-dashboard + default_backend: stats acls: - - host_ceph hdr_beg(host) -i ceph. - host_stats hdr_beg(host) -i stats. + - host_docker hdr_beg(host) -i docker-registry. use_backends: - grafana if host_stats - - ceph-dashboard if host_ceph + - docker-registry if host_docker backends: backend1: - name: radosgw-backend + name: docker-registry balance: roundrobin servers: server1: name: pine01 - host: 192.168.10.160 - port: 7480 - check: check - server2: - name: pine02 - host: 192.168.10.161 - port: 7480 - check: check - server3: - name: pine03 - host: 192.168.10.162 - port: 7480 + host: 127.0.0.1 + port: 5000 check: check backend2: - name: ceph-dashboard - balance: roundrobin - servers: - server1: - name: pine01 - host: 192.168.10.160 - port: 8080 - check: check - server2: - name: pine02 - host: 192.168.10.161 - port: 8080 - check: check - #server3: - # name: pine03 - # host: 192.168.10.162 - # port: 8080 - # check: check - backend3: - name: grafana - balance: roundrobin - servers: - server1: - name: riot01 - host: 192.168.10.164 - port: 3000 - check: check + name: grafana + balance: roundrobin + servers: + server1: + name: riot01 + host: 192.168.10.164 + port: 3000 + check: check