Role haproxy_server for OpenStack-Ansible
4510d37dcd
This change implements CentOS7 and Ubuntu 16.04 support for the HAProxy role. Because RHEL does not package HATop the installation of HATop has been moved to a source installation so that it can be used universally. Implements: blueprint multi-platform-host Change-Id: Ib4f33185202b694b9611cc5fd6323c30a1c8d489 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> |
||
---|---|---|
defaults | ||
files | ||
handlers | ||
meta | ||
tasks | ||
templates | ||
vars | ||
CONTRIBUTING.rst | ||
LICENSE | ||
README.rst |
OpenStack Haproxy Server
- tags
-
openstack, galera, haproxy, cloud, ansible
- category
-
*nix
Role for the installation and setup of haproxy
- 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"