|
245 | 245 | $statsd_forward_host = '', |
246 | 246 | $statsd_forward_port = '', |
247 | 247 | $statsd_histogram_percentiles = '0.95', |
248 | | - $proxy_host = '', |
249 | | - $proxy_port = '', |
250 | | - $proxy_user = '', |
251 | | - $proxy_password = '', |
| 248 | + Optional[String] $proxy_host = undef, |
| 249 | + Optional[Variant[Integer, Pattern[/^\d*$/]]] $proxy_port = undef, |
| 250 | + Optional[String] $proxy_user = undef, |
| 251 | + Optional[String] $proxy_password = undef, |
252 | 252 | $graphite_listen_port = '', |
253 | 253 | $extra_template = '', |
254 | 254 | $ganglia_host = '', |
|
317 | 317 | # lint:ignore:only_variable_string |
318 | 318 | $_dogstatsd_port = "${dogstatsd_port}" |
319 | 319 | $_statsd_forward_port = "${statsd_forward_port}" |
320 | | - $_proxy_port = "${proxy_port}" |
321 | 320 | $_graphite_listen_port = "${graphite_listen_port}" |
322 | 321 | $_listen_port = "${listen_port}" |
323 | 322 | $_pup_port = "${pup_port}" |
|
342 | 341 | validate_legacy(String, 'validate_re', $_dogstatsd_port, '^\d*$') |
343 | 342 | validate_legacy(String, 'validate_string', $statsd_histogram_percentiles) |
344 | 343 | validate_legacy(String, 'validate_re', $_statsd_forward_port, '^\d*$') |
345 | | - validate_legacy(String, 'validate_string', $proxy_host) |
346 | | - validate_legacy(String, 'validate_re', $_proxy_port, '^\d*$') |
347 | | - validate_legacy(String, 'validate_string', $proxy_user) |
348 | | - validate_legacy(String, 'validate_string', $proxy_password) |
349 | 344 | validate_legacy(String, 'validate_re', $_graphite_listen_port, '^\d*$') |
350 | 345 | validate_legacy(String, 'validate_string', $extra_template) |
351 | 346 | validate_legacy(String, 'validate_string', $ganglia_host) |
|
578 | 573 | if !empty($proxy_host) { |
579 | 574 | notify { 'Setting proxy_host will have no effect on agent6 please use agent6_extra_options to set your proxy': } |
580 | 575 | } |
581 | | - if !empty($_proxy_port) { |
| 576 | + if !empty($proxy_port) { |
582 | 577 | notify { 'Setting proxy_port will have no effect on agent6 please use agent6_extra_options to set your proxy': } |
583 | 578 | } |
584 | 579 | if !empty($proxy_user) { |
|
0 commit comments