Giter Site home page Giter Site logo

Comments (4)

goldyfruit avatar goldyfruit commented on May 22, 2024 1

Glad you found a workaround. I did a commit to add the capability: 3abed7d

Add this to your playbook:

haproxy_stats_listener_options
  - dontlog-normal

from ansible-haproxy.

haydenseitz avatar haydenseitz commented on May 22, 2024 1

nice, thank you!

from ansible-haproxy.

goldyfruit avatar goldyfruit commented on May 22, 2024

Hi @haydenseitz

Yes, as documented in the README (in the stats section), you could use the haproxy_stats_options variable to set a list of options.

haproxy_stats_options:
  - dontlog-normal

EDIT

After checking, the haproxy_stats_options parameter will only add stats options. There is currently no way to add option to the stats listrener.

Here is the template: https://github.com/uoi-io/ansible-haproxy/blob/master/templates/etc/haproxy/haproxy-stats.cfg.j2

from ansible-haproxy.

haydenseitz avatar haydenseitz commented on May 22, 2024

I was going to submit a PR to add that functionality, but I was able to set up a stats page with options using haproxy_frontend:

haproxy_stats: false
haproxy_frontend:
  - stats:
      binds:
        - :9001
      stats:
        - enable
        - refresh 10s
        - show-legends
        - show-node
        - hide-version
        - uri /
      options:
        - dontlog-normal

from ansible-haproxy.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.