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.
Deprecate ports parameter as a string
Previously it was possible to set the ports parameter as: * `'1234'` * `'1234,5678'` * `['1234']` * `['1234','5678']` Since #610 the ports parameter could also be specified with `Stdlib::Ports`: * `1234` * `[1234]` * `[1234, 5678]` With this patch all the previous string values are deprecated and will fail. The `Stdlib::Port` values must be used.
- Loading branch information
1 parent
dcfd35d
commit a9d92b3
Showing
18 changed files
with
106 additions
and
264 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 |
---|---|---|
|
@@ -91,25 +91,25 @@ | |
# Gary Larizza <[email protected]> | ||
# | ||
define haproxy::frontend ( | ||
Optional[Haproxy::Ports] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
Boolean $collect_exported = true, | ||
Variant[Hash, Array[Hash]] $options = { | ||
Optional[Variant[Array[Stdlib::Port,0],Stdlib::Port]] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
Boolean $collect_exported = true, | ||
Variant[Hash, Array[Hash]] $options = { | ||
'option' => [ | ||
'tcplog', | ||
], | ||
}, | ||
String $instance = 'haproxy', | ||
String[1] $section_name = $name, | ||
Boolean $sort_options_alphabetic = true, | ||
Optional[String] $description = undef, | ||
Optional[String] $defaults = undef, | ||
Boolean $defaults_use_backend = true, | ||
Optional[Stdlib::Absolutepath] $config_file = undef, | ||
String $instance = 'haproxy', | ||
String[1] $section_name = $name, | ||
Boolean $sort_options_alphabetic = true, | ||
Optional[String] $description = undef, | ||
Optional[String] $defaults = undef, | ||
Boolean $defaults_use_backend = true, | ||
Optional[Stdlib::Absolutepath] $config_file = undef, | ||
# Deprecated | ||
Optional[Array] $bind_options = undef, | ||
Optional[Array] $bind_options = undef, | ||
) { | ||
if $ports and $bind { | ||
fail('The use of $ports and $bind is mutually exclusive, please choose either one') | ||
|
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 |
---|---|---|
|
@@ -94,25 +94,25 @@ | |
# Gary Larizza <[email protected]> | ||
# | ||
define haproxy::listen ( | ||
Optional[Haproxy::Ports] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
Boolean $collect_exported = true, | ||
Variant[Hash, Array[Hash]] $options = { | ||
Optional[Variant[Array[Stdlib::Port,0],Stdlib::Port]] $ports = undef, | ||
Optional[Variant[String, Array]] $ipaddress = undef, | ||
Optional[Hash] $bind = undef, | ||
Optional[Enum['tcp', 'http', 'health']] $mode = undef, | ||
Boolean $collect_exported = true, | ||
Variant[Hash, Array[Hash]] $options = { | ||
'option' => [ | ||
'tcplog', | ||
], | ||
'balance' => 'roundrobin', | ||
}, | ||
String $instance = 'haproxy', | ||
String[1] $section_name = $name, | ||
Boolean $sort_options_alphabetic = true, | ||
Optional[String] $description = undef, | ||
Optional[String] $defaults = undef, | ||
Optional[Stdlib::Absolutepath] $config_file = undef, | ||
String $instance = 'haproxy', | ||
String[1] $section_name = $name, | ||
Boolean $sort_options_alphabetic = true, | ||
Optional[String] $description = undef, | ||
Optional[String] $defaults = undef, | ||
Optional[Stdlib::Absolutepath] $config_file = undef, | ||
# Deprecated | ||
Optional[Array] $bind_options = undef, | ||
Optional[Array] $bind_options = undef, | ||
) { | ||
if $ports and $bind { | ||
fail('The use of $ports and $bind is mutually exclusive, please choose either one') | ||
|
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
Oops, something went wrong.