/HAProxy-2-RPM-builder

RPM builder for latest HAProxy 2.3 (CentOS 7)

Primary LanguageShellGNU General Public License v3.0GPL-3.0

RPM builder for latest HAProxy 2.3 (CentOS 7) with default syslog

GitHub last commit GitHub All Releases

Perform the following steps on a build box as a regular user:

Install Prerequisites:

sudo yum -y groupinstall 'Development Tools'

Checkout this repository

cd /opt
sudo git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git
cd ./HAProxy-2-RPM-builder
sudo git checkout master

Build:

Without Lua:

sudo make

With Lua:

sudo make USE_LUA=1

With Prometheus module:

sudo make USE_PROMETHEUS=1

Without sudo for YUM:

sudo make NO_SUDO=1

Resulting RPM will be stored in

/opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/

Build using Docker:

sudo make run-docker

Resulting RPM will be stored in

./RPMS/

Install RPM:

sudo yum -y install /opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/haproxy-2.3.3-1.el7.x86_64.rpm

or, if you build *.rpm with Docker:

sudo yum -y install RPMS/haproxy-2.3.3-1.el7.x86_64.rpm 

Check after install:

haproxy -v

Must be like this:

HA-Proxy version 2.3.3-9233c21 2021/01/08

❗ If some not working:

Check SELINUX:

sestatus

If SELINUX is enabled - switch off this: open /etc/selinux/config and change SELINUX to disabled

Stats page

After installation you can access a stats page without authenticating via the URL: http://<YourHAProxyServer>:9000/haproxy_stats