123
This commit is contained in:
parent
eea045a2e2
commit
b9dab8d4a8
@ -10,16 +10,14 @@ class role::loadbalancer (
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
include ::haproxy
|
include ::haproxy
|
||||||
#haproxy::listen { $rule1 :
|
haproxy::listen { $rule1 :
|
||||||
class { 'haproxy::listen' :
|
|
||||||
collect_exported => false,
|
collect_exported => false,
|
||||||
ipaddress => $::ipaddress,
|
ipaddress => $::ipaddress,
|
||||||
ports => $ports1,
|
ports => $ports1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#haproxy::balancermember { 'member1' :
|
haproxy::balancermember { 'member1' :
|
||||||
class { 'haproxy::balancermember' :
|
|
||||||
listening_service => $rule1,
|
listening_service => $rule1,
|
||||||
server_names => $backendserver_name1,
|
server_names => $backendserver_name1,
|
||||||
ipaddresses => $backendserver_ipaddress1,
|
ipaddresses => $backendserver_ipaddress1,
|
||||||
@ -28,8 +26,7 @@ class role::loadbalancer (
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#haproxy::balancermember { 'haproxy02' :
|
haproxy::balancermember { 'member2' :
|
||||||
class { 'haproxy::balancermember' :
|
|
||||||
listening_service => $rule1,
|
listening_service => $rule1,
|
||||||
server_names => $backendserver_name2,
|
server_names => $backendserver_name2,
|
||||||
ipaddresses => $backendserver_ipaddress2,
|
ipaddresses => $backendserver_ipaddress2,
|
||||||
|
Loading…
Reference in New Issue
Block a user