loadbalancer: clean define, (refs: #4541)
This commit is contained in:
parent
6a196dde7e
commit
79ca73c9fc
@ -178,7 +178,7 @@ monitor fail if horizon_dead
|
||||
privatecloud::loadbalancer::listen_http{ 'metadata_api_cluster': ports => $ks_metadata_public_port }
|
||||
}
|
||||
if $spice {
|
||||
privatecloud::loadbalancer::listen_http{ 'spice_cluster': ports => $spice_port }
|
||||
privatecloud::loadbalancer::listen_http{ 'spice_cluster': ports => $spice_port, httpchk => 'httpchk GET /' }
|
||||
}
|
||||
if $glance_api {
|
||||
privatecloud::loadbalancer::listen_http{ 'spice_cluster': ports => $ks_glance_public_port }
|
||||
|
@ -17,12 +17,9 @@
|
||||
#
|
||||
# privatecloud::loadbalancer::listen_http
|
||||
#
|
||||
define privatecloud::loadbalancer::listen_http( $ports = 'unset' ) {
|
||||
if $name == '6082' { # spice doesn't support OPTIONS
|
||||
$httpchk = 'httpchk GET /'
|
||||
} else {
|
||||
$httpchk = 'httpchk'
|
||||
}
|
||||
define privatecloud::loadbalancer::listen_http(
|
||||
$ports = 'unset',
|
||||
$httpchk = 'httpchk') {
|
||||
|
||||
haproxy::listen { $name:
|
||||
ipaddress => '0.0.0.0',
|
||||
|
Loading…
x
Reference in New Issue
Block a user