Git Product home page Git Product logo

haproxy-formula's Introduction

haproxy

Install, configure and run haproxy.

Available states

Use the supplied haproxy.cfg for a flat file approach, or the jinja template and the pillar for a salt approach.

haproxy

Install, configure and run haproxy service.

haproxy.install

Install haproxy from packages.

haproxy.config

Currently, only a handful of options can be set using the pillar:

  • Global
    • stats: enable stats, curently only via a unix socket which can be set to a path with custom permissions
    • user: sets the user haproxy shall run as
    • group: sets the group haproxy shall run as
    • chroot: allows you to turn on chroot and set a directory
    • daemon: allows you to turn daemon mode on and off
  • Default
    • log: set the default log
    • mode: sets the mode (i.e. http)
    • retries: sets the number of retries
    • options: an array of options that is simply looped with no special treatment
    • timeouts: an array of timeouts that is simply looped with no special treatment
    • errorfiles: an array of k:v errorfiles to point to the correct file matching an HTTP error code
  • Frontend; Frontend(s) is a list of the frontends you desire to have in your haproxy setup Per frontend you can set:
    • name: the name haproxy will use for the frontend
    • bind: the bind string: this allows you to set the IP, Port and other paramters for the bind
    • redirect: add a redirect line, an unparsed string like in the backend
    • reqadd: an array of reqadd statements. Looped over and put in the configuration, no parsing
    • default_backend: sets the default backend
    • acls: a list of acls, not parsed, simply looped and put in to the configuration
    • blocks: a list of block statements, not parsed, simply looped and put in to the configuration
    • use_backends: a list of use_backend statements, looped over, not parsed
  • Backend; Backend(s) is a list of the backends you desire to have in your haproxy setup, per backend you can set:
    • name: set the backend name, used in the frontend references by haproxy
    • balance: set the balance type, string
    • redirect: if set, can be used to redirect; simply a string, not parsed
    • servers: a list of servers this backend will contact, is looped over; per server you can set:
      • name: name of the server for haproxy
      • host: the host to be contacted
      • port: the port to contact the server on
      • check: set to check to enable checking
  • For global, default, frontend, listener, backend and server it is possible to use the "extra" option for more rare settings not mentioned above.

haproxy.service

Make sure haproxy service is running.

haproxy-formula's People

Contributors

abednarik avatar aboe76 avatar bigbosst avatar bneqld avatar boltronics avatar davidkarlsen avatar davidwalter0 avatar genuss avatar gravyboat avatar iggy avatar johnkeates avatar liunich avatar morsik avatar msciciel avatar nmadhok avatar puneetk avatar stp-ip avatar thatch45 avatar ticosax avatar whiteinge avatar

Watchers

 avatar  avatar

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.