This commit consists HAProxy ansible bits including config generation, container deployment and hot reloads. Closes-Bug: #1477915 Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Ie93fa68fdb6b2885889c992ff1267d38b68e0cbc Partially-implements: blueprint ansible-service
15 lines
379 B
YAML
Executable File
15 lines
379 B
YAML
Executable File
---
|
|
- name: Ensuring config directory exists
|
|
file:
|
|
path: "{{ node_config_directory }}/haproxy/"
|
|
state: "directory"
|
|
recurse: "yes"
|
|
|
|
- name: Copying over config(s)
|
|
template:
|
|
src: "haproxy.cfg.j2"
|
|
dest: "{{ node_config_directory }}/haproxy/haproxy.cfg"
|
|
|
|
- name: Allowing non-local IP binding
|
|
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
|