Skip to content

Commit

Permalink
Put PR in argument specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Aug 30, 2023
1 parent 717215b commit 51be9bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ This example is taken from [`molecule/default/converge.yml`](https://github.com/
port: 8080
options:
- maxconn 100000

```
The machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-haproxy/blob/master/molecule/default/prepare.yml):
Expand Down Expand Up @@ -155,6 +154,9 @@ haproxy_frontends: []
haproxy_backend_default_balance: roundrobin
haproxy_backends: []

# For the listening lists:
haproxy_listen_default_balance: roundrobin
haproxy_listens: []
```
## [Requirements](#requirements)
Expand Down
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ haproxy_maxconn: 3000
haproxy_frontends: []
haproxy_backend_default_balance: roundrobin
haproxy_backends: []

# For the listening lists:
haproxy_listen_default_balance: roundrobin
haproxy_listens: []
8 changes: 8 additions & 0 deletions meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ argument_specs:
type: "list"
default: []
description: "A list of backends."
haproxy_listen_default_balance:
type: "str"
default: "roundrobin"
description: "The default balance for listens."
haproxy_listens:
type: "list"
default: []
description: "A list of listens."

0 comments on commit 51be9bf

Please sign in to comment.