diff --git a/states/haproxy/defaults.yaml b/states/haproxy/defaults.yaml index 9f1097f..6c2dd8a 100644 --- a/states/haproxy/defaults.yaml +++ b/states/haproxy/defaults.yaml @@ -3,7 +3,7 @@ haproxy: enabled: true pkgs: - haproxy - - liblua5.3-dev + - liblua5.4-dev - lua-filesystem - lua-socket - libcurl4-openssl-dev diff --git a/states/haproxy/mods/haproxy.c b/states/haproxy/mods/haproxy.c index 22fa06e..9fb3532 100644 --- a/states/haproxy/mods/haproxy.c +++ b/states/haproxy/mods/haproxy.c @@ -4,7 +4,7 @@ for i in $(ls *.c) do basename=$(echo ${i}|awk -F '.' '{ print $1}') - sudo -u haproxy cc -I/usr/include/ -I/usr/include/lua5.3/ -fPIC -shared -o ${basename}.so ${i} -lcurl -ljansson -lmaxminddb + sudo -u haproxy cc -I/usr/include/ -I/usr/include/lua5.4/ -fPIC -shared -o ${basename}.so ${i} -lcurl -ljansson -lmaxminddb done */ @@ -13,8 +13,8 @@ done #include #include #include -#include -#include +#include +#include #include #include #include diff --git a/states/haproxy/scripts/compile.lua b/states/haproxy/scripts/compile.lua index 1821319..47830e4 100644 --- a/states/haproxy/scripts/compile.lua +++ b/states/haproxy/scripts/compile.lua @@ -3,7 +3,7 @@ local lfs = require("lfs") local modpath = "/etc/haproxy/mods" local compile = {} -local lua_version = "5.3" +local lua_version = "5.4" local user = "haproxy" local group = "haproxy" local libs = {"-ljansson", "-lmaxminddb", "-lcurl"}