SimpliField.haproxy

HAProxy

Configurer HAProxy avec des fichiers de configuration séparés

Exigences

  • Ansible 2.x

Variables de rôle

haproxy_frontends:
  http_front:
  - bind *:80
  - default_backend http_back
  custom_front:
  - bind *:8081
  - default_backend http_back
haproxy_backends:
  http_back:
  - balance roundrobin
  - server http1 127.0.0.1:8000 check
  - server http2 127.0.0.1:8001 check

Dépendances

Toutes les dépendances sont regroupées dans meta/main.yml

Exemple de Playbook

- hosts: haproxy
  vars:
    haproxy_frontends:
      http_front:
      - bind *:80
      - default_backend http_back
    haproxy_backends:
      http_back:
      - balance roundrobin
      - server http1 10.0.0.1:80 check
      - server http2 10.0.0.2:80 check

  roles:
  - role: SimpliField.haproxy

Licence

BSD

Installer
ansible-galaxy install SimpliField.haproxy
Licence
Unknown
Téléchargements
569
Propriétaire