You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,38 @@
1
1
haproxy
2
2
========
3
3
4
-
Will install haproxy and configure it.
4
+
Installs and configures [HAProxy 1.5](http://www.haproxy.org/).
5
5
6
-
Requirements
7
-
------------
6
+
Features
7
+
--------
8
8
9
-
Only tested on CentOS, Ubuntu and SmartOS for now.
10
-
Some features are only possible with haproxy 1.5 (like the compresion flags).
11
-
This role will install the public repository to install haproxy 1.5 on ubuntu. Or it will install the EPEL repository on CentOS.
9
+
* Supports CentOS, Debian, Ubuntu, and SmartOS.
10
+
* Installs HAProxy 1.5 from official repositories on Debian, Ubuntu, and SmartOS.
11
+
* Installs EPEL repository on CentOS.
12
12
13
13
Role Variables
14
14
--------------
15
15
16
-
There is a main dictionary that needs to be set named `haproxy`.
17
-
This dictionary has 4 main sections :
18
-
- global
19
-
- defaults
20
-
- frontends
21
-
- backends
16
+
*`haproxy_global`
22
17
23
-
Each section has the most used parameters that I can think of. This role does not have (yet) full coverage of the main haproxy project. Feel free to submit a pull request if something is missing for you.
18
+
Global HAProxy settings.
19
+
*`haproxy_defaults`
24
20
25
-
Example Playbook
26
-
-------------------------
21
+
Default settings for frontends, backends, and listen proxies.
22
+
*`haproxy_backends`
27
23
28
-
I *highly* suggest that you use a seperate variable file for this role (using the `vars_files` directive), but you can use it in the main playbook if you insist:
24
+
A list of HAProxy backends.
25
+
*`haproxy_frontends`
26
+
27
+
A list of HAProxy frontends.
28
+
*`haproxy_listen`
29
+
30
+
A list of listen proxies.
31
+
32
+
See [`vars/main.yml`](vars/main.yml) for a complete list of configurable .
33
+
34
+
Example
35
+
-------
29
36
30
37
```yaml
31
38
- hosts: loadbalancers
@@ -45,9 +52,6 @@ I *highly* suggest that you use a seperate variable file for this role (using th
45
52
ip: '192.168.1.100'
46
53
```
47
54
48
-
See [the full example](https://github.com/Pheromone/ansible-haproxy/blob/master/vars/main.yml) to see all options.
0 commit comments