Git Product home page Git Product logo

ansible-haproxy-1's Introduction

HAProxy

Install and configure HAProxy server.

Requirements

See meta/main.yml.

Role Variables

All configuration happens in /etc/haproxy/haproxy.cfg based on the haproxy.cfg.j2 template. The template is divided in four sections:

  • Defaults: contains the global and main-defaults for all other sections.
  • TCP Proxies: contains the configuration for general tcp proxies combining frontends and backends. These are defined in haproxy_tcp_listens
  • HTTP Proxies: contains the configuration for http frontend and backends, independently. These are defined in haproxy_http_frontends and haproxy_http_backends.
  • Statistics frontend: configures HAProxy's stats frontend.

See default/main.yml for more details on the attributes available for tcp and http proxies, as well as the statistics frontend.

HAProxy can be configured with SSL by passing the appropiate configuration to the proxie, ie:

haproxy_http_frontends:
  - name: https
    bind: 0.0.0.0:443 ssl crt {{ssl_certs_combined_path}}

In the example above Galaxy role luisico.ansible-role-ssl-certs is used to provide the path to the SSL certificate.

Dependencies

Depends on a role that provides SSL certs if HAProxy is the SSL endpoint, ie luisico.ansible-role-ssl-certs.

Example Playbook

Example:

- hosts: servers
  roles:
    - luisico.ansible-role-ssl-certs
    - haproxy

TODO

None.

Licence

Released under the MIT license.

Author Information

Luis Gracia while at EMBL-EBI:

ansible-haproxy-1's People

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.