Logan V 24f562ad46 Clean up references to haproxy_hosts in plays
Instead, reference the 'haproxy' service group. This allows the plays
to be container agnostic and move the haproxy deployment closer to
being container-compatible.

Change-Id: Ibfe0e3a0cb742c8d5c3943922da0a30a56016266
2016-01-31 19:54:13 -06:00

27 lines
757 B
ReStructuredText

OpenStack Haproxy Server
########################
:tags: openstack, galera, haproxy, cloud, ansible
:category: \*nix
Role for the installation and setup of haproxy
.. code-block:: yaml
- name: Install haproxy
hosts: haproxy
user: root
roles:
- { role: "haproxy_server", tags: [ "haproxy-server" ] }
vars:
haproxy_service_configs:
- service:
hap_service_name: group_name
hap_backend_nodes: "{{ groups['group_name'][0] }}"
hap_backup_nodes: "{{ groups['group_name'][1:] }}"
hap_port: 80
hap_balance_type: http
hap_backend_options:
- "forwardfor"
- "httpchk"
- "httplog"