kolla-ansible/ansible/roles/haproxy/tasks/config.yml
Sam Yaple 1efdf4574d Allow disabling of sysctl values
The main reason for this change is to allow the DinD stuff to work. It
has limited use outside of that use case, but it may still be useful
to others in the future.

Change-Id: Ib3a4639cfb3fc0d378d33fc8b9ff8eb597f818ab
Partially-Implements: blueprint multinode-gate
2015-11-05 16:29:25 +00:00

37 lines
995 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: Copying haproxy JSON configuration file
template:
src: "haproxy.json.j2"
dest: "{{ node_config_directory }}/haproxy/config.json"
- name: Allowing non-local IP binding
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
when: set_sysctl | bool
- name: Ensuring config directory exists
file:
path: "{{ node_config_directory }}/keepalived/"
state: "directory"
recurse: "yes"
- name: Copying keepalived JSON configuration file
template:
src: "keepalived.json.j2"
dest: "{{ node_config_directory }}/keepalived/config.json"
- name: Copying over config(s)
template:
src: "keepalived.conf.j2"
dest: "{{ node_config_directory }}/keepalived/keepalived.conf"