Add Optional
This commit is contained in:
parent
8859d51629
commit
271d8f7c61
@ -1,12 +1,12 @@
|
|||||||
class role::loadbalancer (
|
class role::loadbalancer (
|
||||||
Integer $ports1 = '80',
|
Integer $ports1 = '80',
|
||||||
Integer $ports2 = undef,
|
Optional[Integer] $ports2 = undef,
|
||||||
String $rule1 = 'Http',
|
String $rule1 = 'http',
|
||||||
String $rule2 = undef,
|
Optional[String] $rule2 = undef,
|
||||||
String $backendserver_name1 = '',
|
String $backendserver_name1 = '',
|
||||||
String $backendserver_name2 = '',
|
String $backendserver_name2 = '',
|
||||||
Integer $backendserver_ipaddress1 = undef,
|
Optional[String] $backendserver_ipaddress1 = undef,
|
||||||
Integer $backendserver_ipaddress2 = undef,
|
Optional[String] $backendserver_ipaddress2 = undef,
|
||||||
) {
|
) {
|
||||||
include ::haproxy
|
include ::haproxy
|
||||||
haproxy::listen { $rule1 :
|
haproxy::listen { $rule1 :
|
||||||
|
Loading…
Reference in New Issue
Block a user