|
24 | 24 | # @param mod_path
|
25 | 25 | # Specifies a path to the module. Do not manually set this parameter without a special reason.
|
26 | 26 | #
|
| 27 | +# @param passenger_admin_panel_url |
| 28 | +# Specifies a Fuse Panel URL that the Passenger to to enable monitoring, administering, analysis and troubleshooting of this Passenger instance and apps. |
| 29 | +# |
| 30 | +# @param passenger_admin_panel_auth_type |
| 31 | +# Specifies the authentication type to use for the Fuse Panel. Currently it support only basic type of authentiction. |
| 32 | +# Ref : https://www.phusionpassenger.com/library/config/apache/reference/#passengeradminpanelauthtype |
| 33 | +# |
| 34 | +# @param passenger_admin_panel_username |
| 35 | +# The username that Passenger should use when connecting to the Fuse Panel with basic authentication. |
| 36 | +# |
| 37 | +# @param passenger_admin_panel_password |
| 38 | +# The password that Passenger should use when connecting to the Fuse Panel with basic authentication. |
| 39 | +# |
27 | 40 | # @param passenger_allow_encoded_slashes
|
28 | 41 | # Toggle whether URLs with encoded slashes (%2f) can be used (by default Apache does not support this).
|
29 | 42 | #
|
|
41 | 54 | # @param passenger_app_group_name
|
42 | 55 | # Sets the name of the application group that the current application should belong to.
|
43 | 56 | #
|
| 57 | +# @param passenger_app_log_file |
| 58 | +# File path to application specifile log file. By default passenger will write all application log messages to the Passenger log file. |
| 59 | +# |
44 | 60 | # @param passenger_app_root
|
45 | 61 | # Path to the application root which allows access independent from the DocumentRoot.
|
46 | 62 | #
|
|
97 | 113 | # @param passenger_enabled
|
98 | 114 | # Toggles whether Passenger should be enabled for that particular context.
|
99 | 115 | #
|
| 116 | +# @param passenger_dump_config_manifest |
| 117 | +# Dumps the configuration manifest to the given file. |
| 118 | +# |
100 | 119 | # @param passenger_error_override
|
101 | 120 | # Toggles whether Apache will intercept and handle responses with HTTP status codes of 400 and higher.
|
102 | 121 | #
|
|
165 | 184 | # @param passenger_max_requests
|
166 | 185 | # The maximum number of requests an application process will process.
|
167 | 186 | #
|
| 187 | +# @param passenger_max_request_queue_time |
| 188 | +# The maximum amount of time, in seconds, that a request may be queued before Passenger will return an error. |
| 189 | +# This option specifies the maximum time a request may spend in that queue. If a request in the queue reaches this specified limit, then Passenger will send a "504 Gateway Timeout" error for that request. |
| 190 | +# |
168 | 191 | # @param passenger_memory_limit
|
169 | 192 | # The maximum amount of memory that an application process may use, in megabytes.
|
170 | 193 | #
|
|
291 | 314 | Optional[String] $mod_package = undef,
|
292 | 315 | Optional[String] $mod_package_ensure = undef,
|
293 | 316 | Optional[String] $mod_path = undef,
|
| 317 | + Optional[Integer] $passenger_max_request_queue_time = undef, |
| 318 | + Optional[String] $passenger_admin_panel_url = undef, |
| 319 | + Optional[Enum['basic']] $passenger_admin_panel_auth_type = undef, |
| 320 | + Optional[String] $passenger_admin_panel_username = undef, |
| 321 | + Optional[String] $passenger_admin_panel_password = undef, |
| 322 | + Optional[String] $passenger_app_log_file = undef, |
294 | 323 | Optional[Apache::OnOff] $passenger_allow_encoded_slashes = undef,
|
295 | 324 | Optional[String] $passenger_anonymous_telemetry_proxy = undef,
|
296 | 325 | Optional[String] $passenger_app_env = undef,
|
|
313 | 342 | Optional[Boolean] $passenger_disable_log_prefix = undef,
|
314 | 343 | Optional[Apache::OnOff] $passenger_disable_security_update_check = undef,
|
315 | 344 | Optional[Apache::OnOff] $passenger_enabled = undef,
|
| 345 | + Optional[String] $passenger_dump_config_manifest = undef, |
316 | 346 | Optional[Apache::OnOff] $passenger_error_override = undef,
|
317 | 347 | Optional[String] $passenger_file_descriptor_log_file = undef,
|
318 | 348 | Optional[String] $passenger_fly_with = undef,
|
|
524 | 554 | fail("Passenger config option :: passenger_sticky_sessions_cookie_attributes is not introduced until version 6.0.5 :: ${passenger_installed_version} is the version reported")
|
525 | 555 | }
|
526 | 556 | }
|
| 557 | + if $passenger_max_request_queue_time { |
| 558 | + if (versioncmp($passenger_installed_version, '5.1.12') < 0) { |
| 559 | + fail("Passenger config option :: passenger_base_uri is not introduced until version 5.1.12 :: ${passenger_installed_version} is the version reported") |
| 560 | + } |
| 561 | + } |
| 562 | + if $passenger_admin_panel_url { |
| 563 | + if (versioncmp($passenger_installed_version, '5.2.2') < 0) { |
| 564 | + fail("Passenger config option :: passenger_admin_panel_url is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported") |
| 565 | + } |
| 566 | + } |
| 567 | + if $passenger_admin_panel_auth_type { |
| 568 | + if (versioncmp($passenger_installed_version, '5.2.2') < 0) { |
| 569 | + fail("Passenger config option :: passenger_admin_panel_auth_type is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported") |
| 570 | + } |
| 571 | + } |
| 572 | + if $passenger_admin_panel_username { |
| 573 | + if (versioncmp($passenger_installed_version, '5.2.2') < 0) { |
| 574 | + fail("Passenger config option :: passenger_admin_panel_username is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported") |
| 575 | + } |
| 576 | + } |
| 577 | + if $passenger_admin_panel_password { |
| 578 | + if (versioncmp($passenger_installed_version, '5.2.2') < 0) { |
| 579 | + fail("Passenger config option :: passenger_admin_panel_password is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported") |
| 580 | + } |
| 581 | + } |
| 582 | + if $passenger_dump_config_manifest { |
| 583 | + if (versioncmp($passenger_installed_version, '5.2.2') < 0) { |
| 584 | + fail("Passenger config option :: passenger_dump_config_manifest is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported") |
| 585 | + } |
| 586 | + } |
| 587 | + if $passenger_app_log_file { |
| 588 | + if (versioncmp($passenger_installed_version, '5.3.0') < 0) { |
| 589 | + fail("Passenger config option :: passenger_app_log_file is not introduced until version 5.3.0 :: ${passenger_installed_version} is the version reported") |
| 590 | + } |
| 591 | + } |
| 592 | + if $passenger_resist_deployment_errors { |
| 593 | + if (versioncmp($passenger_installed_version, '5.2.0') > 0) { |
| 594 | + fail('REMOVED PASSENGER OPTION :: passenger_resist_deployment_errors :: -- no message on the current passenger reference webpage -- ') |
| 595 | + } |
| 596 | + } |
527 | 597 | }
|
528 | 598 | # Managed by the package, but declare it to avoid purging
|
529 | 599 | if $passenger_conf_package_file {
|
|
648 | 718 | # - $passenger_thread_count : since 4.0.0.
|
649 | 719 | # - $passenger_user : since 4.0.0.
|
650 | 720 | # - $passenger_user_switching : since 3.0.0.
|
| 721 | + # - $passenger_dump_config_manifest : since 5.2.2 |
| 722 | + # - $passenger_admin_panel_url : since 5.2.2 |
| 723 | + # - $passenger_admin_panel_auth_type : since 5.2.2 |
| 724 | + # - $passenger_admin_panel_username : since 5.2.2 |
| 725 | + # - $passenger_admin_panel_password : since 5.2.2 |
| 726 | + # - $passenger_app_log_file : since 5.3.0 |
| 727 | + # - $passenger_max_request_queue_time : since 5.1.12 |
651 | 728 |
|
652 | 729 | $parameters = {
|
| 730 | + 'passenger_admin_panel_url' => $passenger_admin_panel_url, |
| 731 | + 'passenger_admin_panel_auth_type' => $passenger_admin_panel_auth_type, |
| 732 | + 'passenger_admin_panel_username' => $passenger_admin_panel_username, |
| 733 | + 'passenger_admin_panel_password' => $passenger_admin_panel_password, |
653 | 734 | 'passenger_allow_encoded_slashes' => $passenger_allow_encoded_slashes,
|
654 | 735 | 'passenger_anonymous_telemetry_proxy' => $passenger_anonymous_telemetry_proxy,
|
655 | 736 | 'passenger_app_env' => $passenger_app_env,
|
656 | 737 | 'passenger_app_group_name' => $passenger_app_group_name,
|
| 738 | + 'passenger_app_log_file' => $passenger_app_log_file, |
657 | 739 | 'passenger_app_root' => $passenger_app_root,
|
658 | 740 | 'passenger_app_type' => $passenger_app_type,
|
659 | 741 | 'passenger_base_uri' => $passenger_base_uri,
|
|
681 | 763 | 'passenger_load_shell_envvars' => $passenger_load_shell_envvars,
|
682 | 764 | 'passenger_preload_bundler' => $passenger_preload_bundler,
|
683 | 765 | 'passenger_log_file' => $passenger_log_file,
|
| 766 | + 'passenger_dump_config_manifest' => $passenger_dump_config_manifest, |
684 | 767 | 'passenger_log_level' => $passenger_log_level,
|
685 | 768 | 'passenger_lve_min_uid' => $passenger_lve_min_uid,
|
686 | 769 | 'passenger_max_instances' => $passenger_max_instances,
|
687 | 770 | 'passenger_max_instances_per_app' => $passenger_max_instances_per_app,
|
688 | 771 | 'passenger_max_pool_size' => $passenger_max_pool_size,
|
689 | 772 | 'passenger_max_preloader_idle_time' => $passenger_max_preloader_idle_time,
|
690 | 773 | 'passenger_max_request_queue_size' => $passenger_max_request_queue_size,
|
| 774 | + 'passenger_max_request_queue_time' => $passenger_max_request_queue_time, |
691 | 775 | 'passenger_max_request_time' => $passenger_max_request_time,
|
692 | 776 | 'passenger_max_requests' => $passenger_max_requests,
|
693 | 777 | 'passenger_memory_limit' => $passenger_memory_limit,
|
|
0 commit comments