Here are some of my notes.

sudo yum install -y mock
sudo useradd -s /sbin/nologin mockbuild
wget http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/haproxy-1.5.4-3.el6.src.rpm
sudo mock -r epel-6-x86_64 haproxy-1.5.4-3.el6.src.rpm
cd /var/lib/mock/epel-6-x86_64/result
sudo rpm -ivh haproxy-1.5.4-3.el6.x86_64.rpm
rpm -qa|grep haproxy

config

sudo vi /etc/haproxy/haproxy.cfg

For redis sentinel haproxy

global
	daemon
	maxconn 256

defaults
	mode tcp
	timeout connect 4s
	timeout server  30s
	timeout client  30s


frontend http
	bind :8080
	default_backend stats

backend stats
	mode http
	stats enable
	stats uri	 /
	stats refresh 1s
	stats show-legends
	stats admin if TRUE

frontend redis-alpha
	bind *:26379
	default_backend redis-alpha

backend redis-alpha
	mode tcp
	balance first
	option tcp-check
	option tcplog
	tcp-check send AUTH\ YOUR_REDIS_AUTH_PASSWORD_HERE\r\n
	tcp-check send PING\r\n
	tcp-check expect string +PONG
	tcp-check send info\ replication\r\n
	tcp-check expect string role:master
	tcp-check send QUIT\r\n
	tcp-check expect string +OK

	server redis-1 X.10.29.44:6379 maxconn 1024 check inter 1s
	server redis-2 X.10.56.235:6379 maxconn 1024 check inter 1s
	server redis-3 X.10.29.221:6379 maxconn 1024 check inter 1s
	server redis-4 X.10.29.215:6379 maxconn 1024 check inter 1s
	server redis-5 X.10.29.214:6379 maxconn 1024 check inter 1s