Hello all,
I have an haproxy action called get_some_data in which I return nil
whenever something goes wrong. In this case I don't want the
send-spoe-group action to be executed (see below config), since the data to
be sent is decided by the action and if there was any failure there, then
there is no point in trying to send data.
I guess I can set a variable in the lua code before returning nil, set an
acl based on this variable and then add an unless condition in the action
rule. This seems a bit cumbersome as I will have to set this variable in
multiple places so I just wanted to check if someone can suggest a
better solution. Thanks for your help.
frontend http-in
bind *:80
mode http
option httplog
log /dev/log local0 debug
filter spoe engine my-spoe config /PATH/TO/SPOE/shieldsquare-spoe.conf
http-request lua.get_some_data #1
http-request send-spoe-group my-spoe data-packet-grp #don't want to do
this if something goes wrong in 1