Skip to content

Global option tune.lua.bool-sample-conversion needs to be added before lua-load #635

@h-haaks

Description

@h-haaks

Describe the Bug

tune.lua.bool-sample-conversion 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, resulting in the following warnings:

[WARNING]  (42229) : config : hlua: please set "tune.lua.bool-sample-conversion" tunable to either "normal" or "pre-3.1-bug" explicitly to avoid ambiguities. This must be set before any "lua-load" or "lua-load-per-thread" directive. Defaulting to "pre-3.1-bug".

[WARNING]  (42229) : config : parsing [/etc/haproxy/haproxy.cfg:25] : ignored as some Lua was loaded already. "tune.lua.bool-sample-conversion" must be set before any "lua-load" or "lua-load-per-thread" directive for it to be considered.

Applies to haproxy >= 3.1

Expected Behavior

As the order of global options in haproxy is important the module should allow ordered input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions