forked from glarizza/puppet-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ports parameters as Stdlib::Ports
Currently the ports parameters must be specified as one of: * `'1234'` * `'1234,5678'` * `['1234']` * `['1234','5678']` Allow it to also be specified as the `Stdlib::Port` type. e.g. * `1234` * `[1234]` * `[1234,5678]` To encourage this direction the documentation has been updated to use `Stdlib::Port` types. The old formats are still supported. Motivation here is we were happily using v4 of this module with integer specifications for ports and this is better anyway. Some future version could drop the old stringified ports.
- Loading branch information
1 parent
19051b6
commit 13b08bb
Showing
11 changed files
with
173 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ | |
# | ||
# haproxy::frontend { 'puppet00': | ||
# ipaddress => $::ipaddress, | ||
# ports => '18140', | ||
# ports => [18140], | ||
# mode => 'tcp', | ||
# bind_options => 'accept-proxy', | ||
# options => { | ||
|
@@ -91,7 +91,7 @@ | |
# Gary Larizza <[email protected]> | ||
# | ||
define haproxy::frontend ( | ||
Optional[Variant[Array, String]] $ports = undef, | ||
Optional[Haproxy::Ports] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ | |
# @example | ||
# haproxy::listen { 'puppet00': | ||
# ipaddress => $::ipaddress, | ||
# ports => '18140', | ||
# ports => [18140], | ||
# mode => 'tcp', | ||
# options => { | ||
# 'option' => [ | ||
|
@@ -94,7 +94,7 @@ | |
# Gary Larizza <[email protected]> | ||
# | ||
define haproxy::listen ( | ||
Optional[Variant[Array, String]] $ports = undef, | ||
Optional[Haproxy::Ports] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.