Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devops-coop/ansible-haproxy
Installs and configure HAProxy
https://github.com/devops-coop/ansible-haproxy
ansible haproxy
Last synced: 3 months ago
JSON representation
Installs and configure HAProxy
- Host: GitHub
- URL: https://github.com/devops-coop/ansible-haproxy
- Owner: devops-coop
- License: apache-2.0
- Created: 2014-05-20T18:06:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T19:33:02.000Z (almost 2 years ago)
- Last Synced: 2024-06-15T17:38:46.098Z (5 months ago)
- Topics: ansible, haproxy
- Language: Ruby
- Homepage:
- Size: 135 KB
- Stars: 95
- Watchers: 11
- Forks: 98
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - devops-coop/ansible-haproxy - Installs and configure HAProxy (Ruby)
- awesome-list-ansible - ansible-haproxy
README
haproxy
========Installs and configures [HAProxy 1.5](http://www.haproxy.org/).
Versions
--------**WARNING:** This is the README for the `master` branch, which tracks the development of version 2 and targets Ansible 2.x. This branch is under active development and will include breaking changes.
The **last release** in the 1.x series is [1.2.0](https://github.com/devops-coop/ansible-haproxy/tree/v1.2.0).
Features
--------* Supports Alpine, CentOS, Debian, and Ubuntu.
* Installs HAProxy 1.5 from official repositories on Debian and Ubuntu.
* Installs EPEL repository on CentOS.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.
See [`vars/main.yml`](vars/main.yml) for a complete list of configurable .
Example
-------```yaml
- 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'
```License
-------Apache v2