Move sysctl out of haproxy container

sysctl was improperly set in the contaienr itself which is not correct

TrivialFix

Change-Id: If2ffca6d2a40e86db4af2f103a27b280bc5fa2ff
This commit is contained in:
SamYaple 2016-03-15 13:49:27 +00:00
parent f4d6aaf097
commit 22fe11840b
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,9 @@
---
- name: Allowing non-local IP binding
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
- name: Setting sysctl values
sysctl: name={{ item.name }} value={{ item.value }} sysctl_set=yes
with_items:
- { name: "net.ipv4.ip_nonlocal_bind", value: 1}
- { name: "net.unix.max_dgram_qlen", value: 128}
when: set_sysctl | bool
- name: Ensuring config directories exist

View File

@ -1,8 +1,5 @@
#!/bin/bash
# Set datagram receiving queue length to 128 for haproxy's socket
sysctl net.unix.max_dgram_qlen=128
# We are intentionally not using exec so we can reload the haproxy config later
echo "Running command: '${CMD}'"
$CMD