Commit ba2e5563 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated haproxy to 2.4.1

parent cda861b2
all: haproxy-cfg all: haproxy-cfg
tar xf haproxy-2.1.7.tar.gz tar xf haproxy-2.4.1.tar.gz
$(MAKE) -C haproxy-2.1.7 TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_TFO=1 USE_SYSTEMD=1 $(MAKE) -C haproxy-2.4.1 TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_OPENSSL=1 USE_ZLIB=1 USE_TFO=1 USE_SYSTEMD=1
$(MAKE) -C haproxy-2.1.7 install PREFIX=/usr $(MAKE) -C haproxy-2.4.1 install PREFIX=/usr
$(MAKE) -C haproxy-2.1.7/contrib/systemd PREFIX=/usr $(MAKE) -C haproxy-2.4.1/contrib/systemd PREFIX=/usr
@echo "d /run/haproxy 755 root root -" > /usr/lib/tmpfiles.d/haproxy.conf @echo "d /run/haproxy 755 root root -" > /usr/lib/tmpfiles.d/haproxy.conf
cp haproxy-2.1.7/contrib/systemd/haproxy.service /lib/systemd/system/haproxy.service cp haproxy-2.4.1/contrib/systemd/haproxy.service /lib/systemd/system/haproxy.service
systemctl enable haproxy systemctl enable haproxy
mkdir -p /etc/haproxy mkdir -p /etc/haproxy
@echo "$$HAPROXY_CFG" > /etc/haproxy/haproxy.cfg @echo "$$HAPROXY_CFG" > /etc/haproxy/haproxy.cfg
...@@ -13,7 +13,7 @@ all: haproxy-cfg ...@@ -13,7 +13,7 @@ all: haproxy-cfg
install -v -Dm755 haproxy_stats.sh /usr/bin install -v -Dm755 haproxy_stats.sh /usr/bin
sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.stats[*],/usr/bin/haproxy_stats.sh $$1 $$2 $$3 $$4' -i /etc/zabbix_agentd.conf sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.stats[*],/usr/bin/haproxy_stats.sh $$1 $$2 $$3 $$4' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.list.discovery[*],/usr/bin/haproxy_discovery.sh $$1 $$2' -i /etc/zabbix_agentd.conf sed -e '/^UserParameter=device\.product.*/a UserParameter=haproxy.list.discovery[*],/usr/bin/haproxy_discovery.sh $$1 $$2' -i /etc/zabbix_agentd.conf
rm -rf haproxy-2.1.7 rm -rf haproxy-2.4.1
haproxy-cfg: haproxy-cfg:
define HAPROXY_CFG define HAPROXY_CFG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment