All Projects → Deveryware → ansible-haproxy

Deveryware / ansible-haproxy

Licence: Apache-2.0 license
Installs and configures HAProxy

Programming Languages

Jinja
831 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to ansible-haproxy

ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (+194.74%)
Mutual labels:  debian, centos, ansible-role
ansible-role-docker-ce
Ansible role to install Docker CE on AlmaLinux/Rocky/CentOS/Fedora/RHEL(Redhat)/Ubuntu/Debian/Mint/Raspbian
Stars: ✭ 73 (+284.21%)
Mutual labels:  debian, centos, ansible-role
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+889.47%)
Mutual labels:  debian, centos
Lamp
Install LAMP(Linux + Apache + MySQL/MariaDB + PHP ) for CentOS/Debian/Ubuntu
Stars: ✭ 2,456 (+12826.32%)
Mutual labels:  debian, centos
ipv6-dhclient-script
IPv6 w/ dhclient configuration script (Debian/RedHat-based distros)
Stars: ✭ 68 (+257.89%)
Mutual labels:  debian, centos
Trojan Tutor.github.io
trojan 教程 自建梯子教程 trojan教程 trojan-gfw 科学上网 代理工具 翻墙 Ubuntu Debian 小白教程 https伪装
Stars: ✭ 150 (+689.47%)
Mutual labels:  debian, centos
Patchman
Patchman is a Linux Patch Status Monitoring System
Stars: ✭ 163 (+757.89%)
Mutual labels:  debian, centos
Kvm Install Vm
Bash script to build local virtual machines using KVM/libvirt and cloud-init.
Stars: ✭ 248 (+1205.26%)
Mutual labels:  debian, centos
Anlinux Adfree
AnLinux, Ad free version.
Stars: ✭ 127 (+568.42%)
Mutual labels:  debian, centos
wsl-distrod
Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
Stars: ✭ 1,637 (+8515.79%)
Mutual labels:  debian, centos
consul role
Ansible role to install Consul (cluster of) server/agent
Stars: ✭ 14 (-26.32%)
Mutual labels:  debian, ansible-role
ansible-role-backup
Ansible Role - Backup for simple servers
Stars: ✭ 122 (+542.11%)
Mutual labels:  debian, centos
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (+663.16%)
Mutual labels:  debian, centos
Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (+657.89%)
Mutual labels:  debian, centos
Openvpn Install
OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Stars: ✭ 14,199 (+74631.58%)
Mutual labels:  debian, centos
Anlinux Resources
Image and Script for LinuxOnAndroid App
Stars: ✭ 135 (+610.53%)
Mutual labels:  debian, centos
Mtprotoproxyinstaller
One-click script to install MTProto Proxy server on CentOS, Ubuntu and Debian
Stars: ✭ 216 (+1036.84%)
Mutual labels:  debian, centos
Invidious-Updater
Automatic install and update script for Invidious
Stars: ✭ 181 (+852.63%)
Mutual labels:  debian, centos
Wslu
A collection of utilities for Windows 10 Linux Subsystems
Stars: ✭ 2,020 (+10531.58%)
Mutual labels:  debian, centos
Mattermost Ansible
Ansible playbook to provide a turnkey solution for the Team Edition of Mattermost
Stars: ✭ 126 (+563.16%)
Mutual labels:  debian, centos

haproxy

Installs and configures HAProxy.

Versions

The current release is 1.5.0.

The next release is in development (Cf. the projects tab).

Features

  • Supports CentOS and Debian (Ubuntu should work)
  • Installs HAProxy from official repositories on Debian.
  • Installs HAProxy from EPEL repository on CentOS.
  • Tests via Molecule and Docker

Requirements

The python library jmespath is required on the control node.

Role Variables

  • haproxy_global

    Global HAProxy settings.

  • haproxy_defaults

    Default settings for frontends, backends, and listen proxies.

  • haproxy_resolvers

    A list of HAProxy resolvers.

  • haproxy_backends

    A list of HAProxy backends.

  • haproxy_frontends

    A list of HAProxy frontends.

  • haproxy_listen

    A list of listen proxies.

  • haproxy_logforward

    A list of log-forward proxies (Only for HAProxy version 2.3 and above).

  • haproxy_peers

    A list of peers.

See vars/main.yml for a complete list of configurable .

See the wiki for more details.

Example

- hosts: loadbalancers
  roles:
     - role: haproxy
       haproxy_frontends:
       - name: 'fe-mysupersite'
         ip: '123.123.123.120'
         port: '80'
         maxconn: '1000'
         default_backend: 'be-mysupersite'
       haproxy_backends:
       - name: 'be-mysupersite'
         description: 'mysupersite is really cool'
         servers:
           - name: 'be-mysupersite-01'
             ip: '192.168.1.100'
       log-forward:
          - name: 'my-syslog-lb'
            dgrambind:
              - '127.0.0.1:514' # Listen on UDP IPv4
            log:
              - ip: '192.168.1.101'
                port: 5514
                sample_range: "1:2"
                facility: "local0 info"
              - ip: '192.168.1.102'
                port: 5514
                sample_range: "3:4"
                facility: "local0 info"

Testing

To test the role you first need to install Molecule with :

$ pip install molecule docker

If you encounter a problem while installing with pip, install python-dev

To run the tests, execute :

$ molecule test

License

Apache v2

Author Information

This role was created in 2014 by Pheromone - Pierre Paul Lefebvre ([email protected]).

This role was forked in 2019 by Deveryware.

The contributors list

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].