Describe the Bug
lua-prepend-path in global settings needs to be listed before lua-load, otherwise it won't be used while loading the lua script.
The puppet module sorts the options alphabetically, breaking this badly.
Expected Behavior
Don't sort alphabetically.
Steps to Reproduce
'lua-prepend-path' => [
'/usr/share/haproxy/?/init.lua',
'/usr/share/haproxy/?.lua',
'/etc/haproxy/lua/?/init.lua',
'/etc/haproxy/lua/?.lua',
],
'lua-load' => '/your/script/that/needs/a/lib/from/those/paths',
put that in global_options and see haproxy fail to load the lua script.
Describe the Bug
lua-prepend-path in global settings needs to be listed before lua-load, otherwise it won't be used while loading the lua script.
The puppet module sorts the options alphabetically, breaking this badly.
Expected Behavior
Don't sort alphabetically.
Steps to Reproduce
put that in global_options and see haproxy fail to load the lua script.