Also, the haproxy_input() function is gated with :
@when("haproxy.available") @when("telegraf.installed") def haproxy_input(haproxy):
So it will be called for every single hook if haproxy is related. We should gate it with a flag that's set at the end of this function ("haproxy.input.configured" or something) and unset this flag where appropriate ("config-changed" etc...)
Also, the haproxy_input() function is gated with :
@when(" haproxy. available" ) telegraf. installed" ) input(haproxy) :
@when("
def haproxy_
So it will be called for every single hook if haproxy is related. We should gate it with a flag that's set at the end of this function ("haproxy. input.configure d" or something) and unset this flag where appropriate ("config-changed" etc...)