ensure keepalived starts before haproxy
It should fix a race condition where HAproxy could start before keepalived in some cases and then the binding would fail. bug #336 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -59,10 +59,9 @@ class cloud::loadbalancer(
|
|||||||
$galera_ip = $os_params::galera_ip
|
$galera_ip = $os_params::galera_ip
|
||||||
){
|
){
|
||||||
|
|
||||||
|
class { 'keepalived': } ->
|
||||||
class { 'haproxy': }
|
class { 'haproxy': }
|
||||||
|
|
||||||
class { 'keepalived': }
|
|
||||||
|
|
||||||
keepalived::vrrp_script { 'haproxy':
|
keepalived::vrrp_script { 'haproxy':
|
||||||
name_is_process => true
|
name_is_process => true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user