aaronpederson.haproxy
ansible-haproxy
haproxy - The Reliable, High Performance TCP/HTTP Load Balancer
Important!
Options that weaken HTTPS have been removed from this playbook, including (at least):
- Configured for Perfect Forward Secrecy.
- TLS Tickets are disabled.
- SSLv3 is disabled.
- Weak ciphers required to support old browsers have been disabled.
Tunables
haproxy_version(integer) - Version number of haproxy to installhaproxy_user(string) - User to run haproxy ashaproxy_group(string) - Group to run haproxy ashaproxy_error_handling_enabled(boolean) - Handle errors?haproxy_attack_mitigation_enabled(boolean) - Aggressively favour resiliency over compatibility?haproxy_assumes_backend_is_dead_after(integer) - If a backend has not accepted the connection in this long, it's probably dead.haproxy_runtime_root(string) - Directory for runtime datahaproxy_chroot_path(string) - Directory haproxy should sandbox itself intohaproxy_standard_configuration(boolean) - Use the config generators?haproxy_autodeploy_passthrough_enabled(boolean) - Allow passthrough for automated deploymenthaproxy_stats_enabled(boolean) - Enable statshaproxy_stats_uri(string) - Context path for stats UIhaproxy_stats_user(string) - Username for statshaproxy_stats_password(string) - Password for statshaproxy_protocol(string) - Protocol to usehaproxy_ssl_enabled(boolean) - Enable SSL handling?haproxy_ssl_certificate_path(string) - Path to SSL certificatehaproxy_ssl_ciphers(list) - Ranked set of acceptable ciphershaproxy_ssl_redirect_http_to_https(boolean) - Redirect HTTP to HTTPShaproxy_load_balancer_enabled(boolean) - Adjust backend names to accomodate ELBs from aws-infrastructurehaproxy_standard_application(boolean) - Is this a typical application?haproxy_backend_name(string) - Name for the backend.haproxy_backend_server_port(integer) - Port for backend.haproxy_frontend_port(integer) - Port for frontend.haproxy_backend_server_direct: "application{% if haproxy_load_balancer_enabled %}-direct{% endif %}.{{ *project}}-{{ environment_tier }}.{{ domain }}{% if haproxy_ssl_enabled %}:{{ haproxy_backend_server_*port}}{% endif %}"haproxy_backend_server_load_balancer: "application.{{ project }}-{{ environment_tier }}.{{ domain }}{% *ifhaproxy_ssl_enabled %}:{{ haproxy_backend_server_port }}{% endif %}"haproxy_backend_host_range_enabled(boolean) - Use a range of IPshaproxy_backend_network(string) - First three octets of a IP rangehaproxy_backend_host_range_start(integer) - Beginning of rangehaproxy_backend_host_range_end(integer) - End of rangehaproxy_restricted_paths(list) - Paths to restrict access tohaproxy_allow_access_to_restricted_paths_from_ips(list) - IPs to allow access to restricted pathshaproxy_tune_ssl_default_dh_param(integer) - Sets the maximum size of the Diffie-Hellman parameters used for generating the ephemeral/temporary Diffie-Hellman key
Dependencies
Example Playbook
- hosts: servers
roles:
- role: telusdigital.haproxy
haproxy_backend_host_range_enabled: yes
haproxy_backend_network: 10.0.2
haproxy_backend_host_range_start: 20
haproxy_backend_host_range_end: 40
License
Contributors
- Chris Olstrom | e-mail | Twitter
- Steven Harradine
- Aaron Pederson
- Ben Visser
Install
ansible-galaxy install aaronpederson.haproxyLicense
mit
Downloads
182
Owner
