Enable IP forwarding for HAProxy
This is required for multi-rack environments where the nodes are located on different subnets. Change-Id: I415d4ef81490f07c8987ed43492334a480c228c2 Closes-Bug: #1604432
This commit is contained in:
parent
9b67f60935
commit
f20a5e1c7e
|
@ -85,6 +85,9 @@ class { 'haproxy::base':
|
|||
use_include => true,
|
||||
}
|
||||
|
||||
# IP forwarding needs to be enabled for multi-rack environments
|
||||
# See https://bugs.launchpad.net/lma-toolchain/+bug/1604432
|
||||
sysctl::value { 'net.ipv4.ip_forward': value => '1' }
|
||||
sysctl::value { 'net.ipv4.ip_nonlocal_bind':
|
||||
value => '1'
|
||||
}
|
||||
|
@ -115,7 +118,7 @@ Service['haproxy']
|
|||
Package['haproxy'] ~>
|
||||
Service['haproxy']
|
||||
|
||||
Sysctl::Value['net.ipv4.ip_nonlocal_bind'] ~>
|
||||
Sysctl::Value['net.ipv4.ip_nonlocal_bind', 'net.ipv4.ip_forward'] ~>
|
||||
Service['haproxy']
|
||||
|
||||
# Pacemaker
|
||||
|
|
Loading…
Reference in New Issue