Created
July 19, 2018 02:51
-
-
Save broxio/742dfdb55dcf547e991c8bb960de8760 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| haproxy-install: | |
| file.managed: | |
| - name: {{ source }}/haproxy-{{ haproxy_version }}.tar.gz | |
| - source: salt://haproxy/files/haproxy-{{ haproxy_version }}.tar.gz | |
| - user: root | |
| - group: root | |
| - mode: 755 | |
| cmd.run: | |
| - name: | | |
| cd {{ source }} && tar zxf {{ haproxy_src }}.tar.gz && mkdir -p {{ source }}/a && tar zxf {{ haproxy_patch }} -C a --strip=1 && | |
| cd haproxy-{{ haproxy_version }} && for i in {{ source }}/a/*.diff; do patch -p1 < $i; done && | |
| make -j16 TARGET=linux2628 USE_LINUX_SPLICE=1 CPU=native USE_PCRE=1 USE_PCRE_JIT=1 USE_LIBCRYPT=1 USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1 USE_OPENSSL=1 USE_DL=1 USE_LUA=1 LUA_LIB=/opt/lua53/lib/ LUA_INC=/opt/lua53/include/ USE_ZLIB=1 USE_TFO=1 EXTRA=haproxy-systemd-wrapper LDFLAGS="-lcrypt -lssl -lcrypto -L/usr/local/lib/ -llua -lm -L/usr/lib -lpcreposix -lpcre" CFLAGS="-O2 -g -fno-strict-aliasing -DTCP_USER_TIMEOUT=18" #&& | |
| #make -j4 EXTRA=haproxy-systemd-wrapper install LDFLAGS="-lcrypt -lssl -lcrypto -L/usr/local/lib/ -llua -lm -L/usr/lib -lpcreposix -lpcre -ldl" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment