lb: fix lint
This commit is contained in:
@@ -207,10 +207,17 @@ class cloud::loadbalancer(
|
|||||||
listen_ip => $vip_public_ip;
|
listen_ip => $vip_public_ip;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cloud::loadbalancer::listen_http{
|
# Horizon URL is not the same on Red Hat and Debian/Ubuntu
|
||||||
'horizon_cluster':
|
if $::operatingsystem == 'RedHat' {
|
||||||
ports => $horizon_port,
|
$horizon_auth_url = 'dashboard'
|
||||||
listen_ip => $vip_public_ip;
|
} else {
|
||||||
|
$horizon_auth_url = 'horizon'
|
||||||
|
}
|
||||||
|
cloud::loadbalancer::listen_http{ 'horizon_cluster':
|
||||||
|
ports => $horizon_port,
|
||||||
|
httpchk => "httpchk GET \"/${horizon_auth_url} HTTP/1.0\r\nUser-Agent: HAProxy-${::hostname}\"",
|
||||||
|
options => { 'cookie' => 'sessionid prefix', 'balance' => 'leastconn' },
|
||||||
|
listen_ip => $vip_public_ip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user