diff --git a/manifests/backend.pp b/manifests/backend.pp index fbcf2814..fc30d2f1 100644 --- a/manifests/backend.pp +++ b/manifests/backend.pp @@ -44,7 +44,7 @@ # # @param sort_options_alphabetic # Sort options either alphabetic or custom like haproxy internal sorts them. -# Defaults to true. +# Defaults to undef (picking true from $haproxy::globals::sort_options_alphabetic). # # @param defaults # Name of the defaults section this backend will use. @@ -77,7 +77,7 @@ }, String $instance = 'haproxy', String[1] $section_name = $name, - Boolean $sort_options_alphabetic = true, + Optional[Boolean] $sort_options_alphabetic = undef, Optional[String] $description = undef, Optional[String] $defaults = undef, Optional[Stdlib::Absolutepath] $config_file = undef, diff --git a/manifests/defaults.pp b/manifests/defaults.pp index 636d33fc..a0423d90 100644 --- a/manifests/defaults.pp +++ b/manifests/defaults.pp @@ -14,15 +14,15 @@ # # @param sort_options_alphabetic # Sort options either alphabetic or custom like haproxy internal sorts them. -# Defaults to true. +# Defaults to undef (picking true from $haproxy::globals::sort_options_alphabetic). # # @param instance # Optional. Defaults to 'haproxy'. # define haproxy::defaults ( - Hash $options = {}, - Boolean $sort_options_alphabetic = true, - String $instance = 'haproxy', + Hash $options = {}, + Optional[Boolean] $sort_options_alphabetic = undef, + String $instance = 'haproxy', ) { if $instance == 'haproxy' { include haproxy diff --git a/manifests/frontend.pp b/manifests/frontend.pp index 1f3fcc69..1790205b 100644 --- a/manifests/frontend.pp +++ b/manifests/frontend.pp @@ -45,7 +45,7 @@ # # @param sort_options_alphabetic # Sort options either alphabetic or custom like haproxy internal sorts them. -# Defaults to true. +# Defaults to undef (picking true from $haproxy::globals::sort_options_alphabetic). # # @param defaults # Name of the defaults section this backend will use. @@ -103,7 +103,7 @@ }, String $instance = 'haproxy', String[1] $section_name = $name, - Boolean $sort_options_alphabetic = true, + Optional[Boolean] $sort_options_alphabetic = undef, Optional[String] $description = undef, Optional[String] $defaults = undef, Boolean $defaults_use_backend = true, diff --git a/manifests/listen.pp b/manifests/listen.pp index 0b73609c..e7894269 100644 --- a/manifests/listen.pp +++ b/manifests/listen.pp @@ -61,7 +61,7 @@ # # @param sort_options_alphabetic # Sort options either alphabetic or custom like haproxy internal sorts them. -# Defaults to true. +# Defaults to undef (picking true from $haproxy::globals::sort_options_alphabetic). # # @param defaults # Name of the defaults section this backend will use. @@ -107,7 +107,7 @@ }, String $instance = 'haproxy', String[1] $section_name = $name, - Boolean $sort_options_alphabetic = true, + Optional[Boolean] $sort_options_alphabetic = undef, Optional[String] $description = undef, Optional[String] $defaults = undef, Optional[Stdlib::Absolutepath] $config_file = undef, diff --git a/manifests/resolver.pp b/manifests/resolver.pp index 330005b9..3dbb0a8d 100644 --- a/manifests/resolver.pp +++ b/manifests/resolver.pp @@ -62,7 +62,7 @@ # # @param sort_options_alphabetic # Sort options either alphabetic or custom like haproxy internal sorts them. -# Defaults to true. +# Defaults to undef (picking true from $haproxy::globals::sort_options_alphabetic). # # @param defaults # Name of the defaults section this backend will use. @@ -105,7 +105,7 @@ Optional[Integer[512, 8192]] $accepted_payload_size = undef, String $instance = 'haproxy', String[1] $section_name = $name, - Boolean $sort_options_alphabetic = true, + Optional[Boolean] $sort_options_alphabetic = undef, Boolean $collect_exported = true, Optional[Stdlib::Absolutepath] $config_file = undef, Optional[String] $defaults = undef,