From 44375386298d6d1681f3696c3e83db0c3b5a412f Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Thu, 22 Aug 2024 04:16:46 +0200 Subject: [PATCH] updated haproxy state --- states/haproxy/defaults.yaml | 2 +- states/haproxy/mods/haproxy.c | 6 +++--- states/haproxy/scripts/compile.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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"}