89ecfc164e
Change-Id: I668c31401305713e720f0f0ae8ec18e320ea1c76 Partially-Implements: blueprint replace-config-external
36 lines
969 B
YAML
Executable File
36 lines
969 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
|
|
|
|
- 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"
|