Install HAProxy 2 on Centos 7
Where can I find official documentation on HAproxy 2x installation documentation for Centos 7?
$ yum install haproxy
$ haproxy -v
HA-Proxy version 1.5.18 2016/05/10
Copyright 2000-2016 Willy Tarreau <[email protected]>
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
I would like to not run an outdated, potentially insecure version of the product.
HAProxy from the repo is unlikely to be insecure as long as CentOS7 is supported, but yes, the 1.5 version is outdated functionality-wise.
From what I see, only modern Fedora versions have more modern versions of HAProxy in their official repositories. If you purchase a commercial version of HAProxy it looks as though there's a RHEL/CentOS compatible repository supported directly by the HAProxy people. Otherwise you may actually have to compile and roll your own packages for your environment.
If running another distro is a possible workaround, the most user-friendly effort for the community version of HAProxy seems to exist on the Debian and Ubuntu side of things: https://haproxy.debian.net/
You can install the latest from: http://au1.mirror.crc.id.au/repo/el7-extra/x86_64/
puppet example:
yumrepo { "haproxy-repo":
baseurl => "http://au1.mirror.crc.id.au/repo/el7-extra/x86_64/",
gpgkey => "http://au1.mirror.crc.id.au/repo/RPM-GPG-KEY-kernel-xen",
descr => "haproxy",
enabled => 1,
gpgcheck => 1
}