comparison modules/apache/manifests/mod/passenger.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents b8d6ada284dd
children
comparison
equal deleted inserted replaced
477:21f6add30502 478:adf6fe9bbc17
1 # @summary 1 # @summary
2 # Installs `mod_pasenger`. 2 # Installs `mod_pasenger`.
3 # > **Note**: This module support Passenger 4.0.0 and higher.
3 # 4 #
4 # @param manage_repo 5 # @param manage_repo
5 # Toggle whether to manage yum repo if on a RedHat node. 6 # Toggle whether to manage yum repo if on a RedHat node.
6 # 7 #
7 # @param mod_id 8 # @param mod_id
20 # @param mod_package_ensure 21 # @param mod_package_ensure
21 # Determines whether Puppet ensures the module should be installed. 22 # Determines whether Puppet ensures the module should be installed.
22 # 23 #
23 # @param mod_path 24 # @param mod_path
24 # Specifies a path to the module. Do not manually set this parameter without a special reason. 25 # Specifies a path to the module. Do not manually set this parameter without a special reason.
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.
25 # 39 #
26 # @param passenger_allow_encoded_slashes 40 # @param passenger_allow_encoded_slashes
27 # Toggle whether URLs with encoded slashes (%2f) can be used (by default Apache does not support this). 41 # Toggle whether URLs with encoded slashes (%2f) can be used (by default Apache does not support this).
28 # 42 #
29 # @param passenger_anonymous_telemetry_proxy 43 # @param passenger_anonymous_telemetry_proxy
38 # - PASSENGER_APP_ENV 52 # - PASSENGER_APP_ENV
39 # 53 #
40 # @param passenger_app_group_name 54 # @param passenger_app_group_name
41 # Sets the name of the application group that the current application should belong to. 55 # Sets the name of the application group that the current application should belong to.
42 # 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 #
43 # @param passenger_app_root 60 # @param passenger_app_root
44 # Path to the application root which allows access independent from the DocumentRoot. 61 # Path to the application root which allows access independent from the DocumentRoot.
45 # 62 #
46 # @param passenger_app_type 63 # @param passenger_app_type
47 # Specifies the type of the application. If you set this option, then you must also set PassengerAppRoot, otherwise Passenger will 64 # Specifies the type of the application. If you set this option, then you must also set PassengerAppRoot, otherwise Passenger will
94 # security updates that might be available. 111 # security updates that might be available.
95 # 112 #
96 # @param passenger_enabled 113 # @param passenger_enabled
97 # Toggles whether Passenger should be enabled for that particular context. 114 # Toggles whether Passenger should be enabled for that particular context.
98 # 115 #
116 # @param passenger_dump_config_manifest
117 # Dumps the configuration manifest to the given file.
118 #
99 # @param passenger_error_override 119 # @param passenger_error_override
100 # Toggles whether Apache will intercept and handle responses with HTTP status codes of 400 and higher. 120 # Toggles whether Apache will intercept and handle responses with HTTP status codes of 400 and higher.
101 # 121 #
102 # @param passenger_file_descriptor_log_file 122 # @param passenger_file_descriptor_log_file
103 # Log file descriptor debug tracing messages to the given file. 123 # Log file descriptor debug tracing messages to the given file.
162 # The maximum amount of time, in seconds, that an application process may take to process a request. 182 # The maximum amount of time, in seconds, that an application process may take to process a request.
163 # 183 #
164 # @param passenger_max_requests 184 # @param passenger_max_requests
165 # The maximum number of requests an application process will process. 185 # The maximum number of requests an application process will process.
166 # 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 #
167 # @param passenger_memory_limit 191 # @param passenger_memory_limit
168 # The maximum amount of memory that an application process may use, in megabytes. 192 # The maximum amount of memory that an application process may use, in megabytes.
169 # 193 #
170 # @param passenger_meteor_app_settings 194 # @param passenger_meteor_app_settings
171 # When using a Meteor application in non-bundled mode, use this option to specify a JSON file with settings for the application. 195 # When using a Meteor application in non-bundled mode, use this option to specify a JSON file with settings for the application.
251 # startup file. 275 # startup file.
252 # 276 #
253 # @param passenger_user_switching 277 # @param passenger_user_switching
254 # Toggles whether to attempt to enable user account sandboxing, also known as user switching. 278 # Toggles whether to attempt to enable user account sandboxing, also known as user switching.
255 # 279 #
256 # @param rack_auto_detect
257 # This option has been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.
258 #
259 # @param rack_autodetect
260 # This option has been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.
261 #
262 # @param rack_base_uri
263 # Deprecated in 3.0.0 in favor of PassengerBaseURI.
264 #
265 # @param rack_env 280 # @param rack_env
266 # Alias for PassengerAppEnv. 281 # Alias for PassengerAppEnv.
267 #
268 # @param rails_allow_mod_rewrite
269 # This option doesn't do anything anymore since version 4.0.0.
270 #
271 # @param rails_app_spawner_idle_time
272 # This option has been removed in version 4.0.0, and replaced with PassengerMaxPreloaderIdleTime.
273 #
274 # @param rails_auto_detect
275 # This option has been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.
276 #
277 # @param rails_autodetect
278 # This option has been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.
279 #
280 # @param rails_base_uri
281 # Deprecated in 3.0.0 in favor of PassengerBaseURI.
282 #
283 # @param rails_default_user
284 # Deprecated in 3.0.0 in favor of PassengerDefaultUser
285 # 282 #
286 # @param rails_env 283 # @param rails_env
287 # Alias for PassengerAppEnv. 284 # Alias for PassengerAppEnv.
288 # 285 #
289 # @param rails_framework_spawner_idle_time 286 # @param rails_framework_spawner_idle_time
290 # This option is no longer available in version 4.0.0. There is no alternative because framework spawning has been removed 287 # This option is no longer available in version 4.0.0. There is no alternative because framework spawning has been removed
291 # altogether. You should use smart spawning instead. 288 # altogether. You should use smart spawning instead.
292 #
293 # @param rails_ruby
294 # Deprecated in 3.0.0 in favor of PassengerRuby.
295 #
296 # @param rails_spawn_method
297 # Deprecated in 3.0.0 in favor of PassengerSpawnMethod.
298 #
299 # @param rails_user_switching
300 # Deprecated in 3.0.0 in favor of PassengerUserSwitching.
301 #
302 # @param wsgi_auto_detect
303 # This option has been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.
304 # 289 #
305 # @note 290 # @note
306 # In Passenger source code you can strip out what are all the available options by looking in 291 # In Passenger source code you can strip out what are all the available options by looking in
307 # - src/apache2_module/Configuration.cpp 292 # - src/apache2_module/Configuration.cpp
308 # - src/apache2_module/ConfigurationCommands.cpp 293 # - src/apache2_module/ConfigurationCommands.cpp
327 Optional[String] $mod_lib = undef, 312 Optional[String] $mod_lib = undef,
328 Optional[String] $mod_lib_path = undef, 313 Optional[String] $mod_lib_path = undef,
329 Optional[String] $mod_package = undef, 314 Optional[String] $mod_package = undef,
330 Optional[String] $mod_package_ensure = undef, 315 Optional[String] $mod_package_ensure = undef,
331 Optional[String] $mod_path = undef, 316 Optional[String] $mod_path = undef,
332 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_allow_encoded_slashes = 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,
323 Optional[Apache::OnOff] $passenger_allow_encoded_slashes = undef,
333 Optional[String] $passenger_anonymous_telemetry_proxy = undef, 324 Optional[String] $passenger_anonymous_telemetry_proxy = undef,
334 Optional[String] $passenger_app_env = undef, 325 Optional[String] $passenger_app_env = undef,
335 Optional[String] $passenger_app_group_name = undef, 326 Optional[String] $passenger_app_group_name = undef,
336 Optional[String] $passenger_app_root = undef, 327 Optional[String] $passenger_app_root = undef,
337 Optional[String] $passenger_app_type = undef, 328 Optional[String] $passenger_app_type = undef,
338 Optional[String] $passenger_base_uri = undef, 329 Optional[String] $passenger_base_uri = undef,
339 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_buffer_response = undef, 330 Optional[Apache::OnOff] $passenger_buffer_response = undef,
340 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_buffer_upload = undef, 331 Optional[Apache::OnOff] $passenger_buffer_upload = undef,
341 Optional[String] $passenger_concurrency_model = undef, 332 Optional[String] $passenger_concurrency_model = undef,
342 String $passenger_conf_file = $apache::params::passenger_conf_file, 333 String $passenger_conf_file = $apache::params::passenger_conf_file,
343 Optional[String] $passenger_conf_package_file = $apache::params::passenger_conf_package_file, 334 Optional[String] $passenger_conf_package_file = $apache::params::passenger_conf_package_file,
344 Optional[Stdlib::Absolutepath] $passenger_data_buffer_dir = undef, 335 Optional[Stdlib::Absolutepath] $passenger_data_buffer_dir = undef,
345 Optional[String] $passenger_debug_log_file = undef, 336 Optional[String] $passenger_debug_log_file = undef,
346 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_debugger = undef, 337 Optional[Apache::OnOff] $passenger_debugger = undef,
347 Optional[String] $passenger_default_group = undef, 338 Optional[String] $passenger_default_group = undef,
348 Optional[String] $passenger_default_ruby = $apache::params::passenger_default_ruby, 339 Optional[String] $passenger_default_ruby = $apache::params::passenger_default_ruby,
349 Optional[String] $passenger_default_user = undef, 340 Optional[String] $passenger_default_user = undef,
350 Optional[Boolean] $passenger_disable_anonymous_telemetry = undef, 341 Optional[Boolean] $passenger_disable_anonymous_telemetry = undef,
351 Optional[Boolean] $passenger_disable_log_prefix = undef, 342 Optional[Boolean] $passenger_disable_log_prefix = undef,
352 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_disable_security_update_check = undef, 343 Optional[Apache::OnOff] $passenger_disable_security_update_check = undef,
353 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_enabled = undef, 344 Optional[Apache::OnOff] $passenger_enabled = undef,
354 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_error_override = undef, 345 Optional[String] $passenger_dump_config_manifest = undef,
346 Optional[Apache::OnOff] $passenger_error_override = undef,
355 Optional[String] $passenger_file_descriptor_log_file = undef, 347 Optional[String] $passenger_file_descriptor_log_file = undef,
356 Optional[String] $passenger_fly_with = undef, 348 Optional[String] $passenger_fly_with = undef,
357 Optional[Variant[Integer, String]] $passenger_force_max_concurrent_requests_per_process = undef, 349 Optional[Variant[Integer, String]] $passenger_force_max_concurrent_requests_per_process = undef,
358 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_friendly_error_pages = undef, 350 Optional[Apache::OnOff] $passenger_friendly_error_pages = undef,
359 Optional[String] $passenger_group = undef, 351 Optional[String] $passenger_group = undef,
360 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_high_performance = undef, 352 Optional[Apache::OnOff] $passenger_high_performance = undef,
361 Optional[String] $passenger_installed_version = undef, 353 Optional[String] $passenger_installed_version = undef,
362 Optional[String] $passenger_instance_registry_dir = undef, 354 Optional[String] $passenger_instance_registry_dir = undef,
363 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_load_shell_envvars = undef, 355 Optional[Apache::OnOff] $passenger_load_shell_envvars = undef,
364 Optional[Boolean] $passenger_preload_bundler = undef, 356 Optional[Boolean] $passenger_preload_bundler = undef,
365 Optional[Stdlib::Absolutepath] $passenger_log_file = undef, 357 Optional[Stdlib::Absolutepath] $passenger_log_file = undef,
366 Optional[Integer] $passenger_log_level = undef, 358 Optional[Integer] $passenger_log_level = undef,
367 Optional[Integer] $passenger_lve_min_uid = undef, 359 Optional[Integer] $passenger_lve_min_uid = undef,
368 Optional[Integer] $passenger_max_instances = undef, 360 Optional[Integer] $passenger_max_instances = undef,
377 Optional[Integer] $passenger_min_instances = undef, 369 Optional[Integer] $passenger_min_instances = undef,
378 Optional[String] $passenger_nodejs = undef, 370 Optional[String] $passenger_nodejs = undef,
379 Optional[Integer] $passenger_pool_idle_time = undef, 371 Optional[Integer] $passenger_pool_idle_time = undef,
380 Optional[Variant[String, Array[String]]] $passenger_pre_start = undef, 372 Optional[Variant[String, Array[String]]] $passenger_pre_start = undef,
381 Optional[String] $passenger_python = undef, 373 Optional[String] $passenger_python = undef,
382 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_resist_deployment_errors = undef, 374 Optional[Apache::OnOff] $passenger_resist_deployment_errors = undef,
383 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_resolve_symlinks_in_document_root = undef, 375 Optional[Apache::OnOff] $passenger_resolve_symlinks_in_document_root = undef,
384 Optional[Variant[Integer, String]] $passenger_response_buffer_high_watermark = undef, 376 Optional[Variant[Integer, String]] $passenger_response_buffer_high_watermark = undef,
385 Optional[String] $passenger_restart_dir = undef, 377 Optional[String] $passenger_restart_dir = undef,
386 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_rolling_restarts = undef, 378 Optional[Apache::OnOff] $passenger_rolling_restarts = undef,
387 Optional[String] $passenger_root = $apache::params::passenger_root, 379 Optional[String] $passenger_root = $apache::params::passenger_root,
388 Optional[String] $passenger_ruby = $apache::params::passenger_ruby, 380 Optional[String] $passenger_ruby = $apache::params::passenger_ruby,
389 Optional[String] $passenger_security_update_check_proxy = undef, 381 Optional[String] $passenger_security_update_check_proxy = undef,
390 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_show_version_in_header = undef, 382 Optional[Apache::OnOff] $passenger_show_version_in_header = undef,
391 Optional[Variant[Integer, String]] $passenger_socket_backlog = undef, 383 Optional[Variant[Integer, String]] $passenger_socket_backlog = undef,
392 Optional[String] $passenger_spawn_dir = undef, 384 Optional[String] $passenger_spawn_dir = undef,
393 Optional[Enum['smart', 'direct', 'smart-lv2', 'conservative']] $passenger_spawn_method = undef, 385 Optional[Enum['smart', 'direct', 'smart-lv2', 'conservative']] $passenger_spawn_method = undef,
394 Optional[Integer] $passenger_start_timeout = undef, 386 Optional[Integer] $passenger_start_timeout = undef,
395 Optional[String] $passenger_startup_file = undef, 387 Optional[String] $passenger_startup_file = undef,
396 Optional[Integer] $passenger_stat_throttle_rate = undef, 388 Optional[Integer] $passenger_stat_throttle_rate = undef,
397 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_sticky_sessions = undef, 389 Optional[Apache::OnOff] $passenger_sticky_sessions = undef,
398 Optional[String] $passenger_sticky_sessions_cookie_name = undef, 390 Optional[String] $passenger_sticky_sessions_cookie_name = undef,
399 Optional[String] $passenger_sticky_sessions_cookie_attributes = undef, 391 Optional[String] $passenger_sticky_sessions_cookie_attributes = undef,
400 Optional[Integer] $passenger_thread_count = undef, 392 Optional[Integer] $passenger_thread_count = undef,
401 Optional[String] $passenger_use_global_queue = undef, 393 Optional[String] $passenger_use_global_queue = undef,
402 Optional[String] $passenger_user = undef, 394 Optional[String] $passenger_user = undef,
403 Optional[Enum['on', 'off', 'On', 'Off']] $passenger_user_switching = undef, 395 Optional[Apache::OnOff] $passenger_user_switching = undef,
404 Optional[String] $rack_auto_detect = undef,
405 Optional[String] $rack_autodetect = undef,
406 Optional[String] $rack_base_uri = undef,
407 Optional[String] $rack_env = undef, 396 Optional[String] $rack_env = undef,
408 Optional[String] $rails_allow_mod_rewrite = undef,
409 Optional[String] $rails_app_spawner_idle_time = undef,
410 Optional[String] $rails_auto_detect = undef,
411 Optional[String] $rails_autodetect = undef,
412 Optional[String] $rails_base_uri = undef,
413 Optional[String] $rails_default_user = undef,
414 Optional[String] $rails_env = undef, 397 Optional[String] $rails_env = undef,
415 Optional[String] $rails_framework_spawner_idle_time = undef, 398 Optional[String] $rails_framework_spawner_idle_time = undef,
416 Optional[String] $rails_ruby = undef,
417 Optional[String] $rails_spawn_method = undef,
418 Optional[String] $rails_user_switching = undef,
419 Optional[String] $wsgi_auto_detect = undef,
420 ) inherits apache::params { 399 ) inherits apache::params {
421 include apache 400 include apache
422 if $passenger_installed_version { 401 if $passenger_installed_version {
423 if $passenger_allow_encoded_slashes {
424 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
425 fail("Passenger config option :: passenger_allow_encoded_slashes is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
426 }
427 }
428 if $passenger_anonymous_telemetry_proxy { 402 if $passenger_anonymous_telemetry_proxy {
429 if (versioncmp($passenger_installed_version, '6.0.0') < 0) { 403 if (versioncmp($passenger_installed_version, '6.0.0') < 0) {
430 fail("Passenger config option :: passenger_anonymous_telemetry_proxy is not introduced until version 6.0.0 :: ${passenger_installed_version} is the version reported") 404 fail("Passenger config option :: passenger_anonymous_telemetry_proxy is not introduced until version 6.0.0 :: ${passenger_installed_version} is the version reported")
431 } 405 }
432 } 406 }
433 if $passenger_app_env {
434 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
435 fail("Passenger config option :: passenger_app_env is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
436 }
437 }
438 if $passenger_app_group_name {
439 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
440 fail("Passenger config option :: passenger_app_group_name is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
441 }
442 }
443 if $passenger_app_root {
444 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
445 fail("Passenger config option :: passenger_app_root is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
446 }
447 }
448 if $passenger_app_type { 407 if $passenger_app_type {
449 if (versioncmp($passenger_installed_version, '4.0.25') < 0) { 408 if (versioncmp($passenger_installed_version, '4.0.25') < 0) {
450 fail("Passenger config option :: passenger_app_type is not introduced until version 4.0.25 :: ${passenger_installed_version} is the version reported") 409 fail("Passenger config option :: passenger_app_type is not introduced until version 4.0.25 :: ${passenger_installed_version} is the version reported")
451 } 410 }
452 } 411 }
453 if $passenger_base_uri {
454 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
455 fail("Passenger config option :: passenger_base_uri is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
456 }
457 }
458 if $passenger_buffer_response {
459 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
460 fail("Passenger config option :: passenger_buffer_response is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
461 }
462 }
463 if $passenger_buffer_upload { 412 if $passenger_buffer_upload {
464 if (versioncmp($passenger_installed_version, '4.0.26') < 0) { 413 if (versioncmp($passenger_installed_version, '4.0.26') < 0) {
465 fail("Passenger config option :: passenger_buffer_upload is not introduced until version 4.0.26 :: ${passenger_installed_version} is the version reported") 414 fail("Passenger config option :: passenger_buffer_upload is not introduced until version 4.0.26 :: ${passenger_installed_version} is the version reported")
466 } 415 }
467 } 416 }
468 if $passenger_concurrency_model {
469 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
470 fail("Passenger config option :: passenger_concurrency_model is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
471 }
472 }
473 if $passenger_data_buffer_dir { 417 if $passenger_data_buffer_dir {
474 if (versioncmp($passenger_installed_version, '5.0.0') < 0) { 418 if (versioncmp($passenger_installed_version, '5.0.0') < 0) {
475 fail("Passenger config option :: passenger_data_buffer_dir is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported") 419 fail("Passenger config option :: passenger_data_buffer_dir is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported")
476 } 420 }
477 } 421 }
478 if $passenger_debug_log_file { 422 if $passenger_debug_log_file {
479 if (versioncmp($passenger_installed_version, '5.0.5') > 0) { 423 if (versioncmp($passenger_installed_version, '5.0.5') > 0) {
480 warning('DEPRECATED PASSENGER OPTION :: passenger_debug_log_file :: This option has been renamed in version 5.0.5 to PassengerLogFile.') 424 warning('DEPRECATED PASSENGER OPTION :: passenger_debug_log_file :: This option has been renamed in version 5.0.5 to PassengerLogFile.')
481 } 425 }
482 } 426 }
483 if $passenger_debugger {
484 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
485 fail("Passenger config option :: passenger_debugger is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
486 }
487 }
488 if $passenger_default_group {
489 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
490 fail("Passenger config option :: passenger_default_group is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
491 }
492 }
493 if $passenger_default_ruby {
494 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
495 fail("Passenger config option :: passenger_default_ruby is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
496 }
497 }
498 if $passenger_default_user {
499 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
500 fail("Passenger config option :: passenger_default_user is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
501 }
502 }
503 if $passenger_disable_anonymous_telemetry { 427 if $passenger_disable_anonymous_telemetry {
504 if (versioncmp($passenger_installed_version, '6.0.0') < 0) { 428 if (versioncmp($passenger_installed_version, '6.0.0') < 0) {
505 fail("Passenger config option :: passenger_disable_anonymous_telemetry is not introduced until version 6.0.0 :: ${passenger_installed_version} is the version reported") 429 fail("Passenger config option :: passenger_disable_anonymous_telemetry is not introduced until version 6.0.0 :: ${passenger_installed_version} is the version reported")
506 } 430 }
507 } 431 }
513 if $passenger_disable_security_update_check { 437 if $passenger_disable_security_update_check {
514 if (versioncmp($passenger_installed_version, '5.1.0') < 0) { 438 if (versioncmp($passenger_installed_version, '5.1.0') < 0) {
515 fail("Passenger config option :: passenger_disable_security_update_check is not introduced until version 5.1.0 :: ${passenger_installed_version} is the version reported") 439 fail("Passenger config option :: passenger_disable_security_update_check is not introduced until version 5.1.0 :: ${passenger_installed_version} is the version reported")
516 } 440 }
517 } 441 }
518 if $passenger_enabled {
519 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
520 fail("Passenger config option :: passenger_enabled is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
521 }
522 }
523 if $passenger_error_override { 442 if $passenger_error_override {
524 if (versioncmp($passenger_installed_version, '4.0.24') < 0) { 443 if (versioncmp($passenger_installed_version, '4.0.24') < 0) {
525 fail("Passenger config option :: passenger_error_override is not introduced until version 4.0.24 :: ${passenger_installed_version} is the version reported") 444 fail("Passenger config option :: passenger_error_override is not introduced until version 4.0.24 :: ${passenger_installed_version} is the version reported")
526 } 445 }
527 } 446 }
543 if $passenger_friendly_error_pages { 462 if $passenger_friendly_error_pages {
544 if (versioncmp($passenger_installed_version, '4.0.42') < 0) { 463 if (versioncmp($passenger_installed_version, '4.0.42') < 0) {
545 fail("Passenger config option :: passenger_friendly_error_pages is not introduced until version 4.0.42 :: ${passenger_installed_version} is the version reported") 464 fail("Passenger config option :: passenger_friendly_error_pages is not introduced until version 4.0.42 :: ${passenger_installed_version} is the version reported")
546 } 465 }
547 } 466 }
548 if $passenger_group {
549 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
550 fail("Passenger config option :: passenger_group is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
551 }
552 }
553 if $passenger_high_performance {
554 if (versioncmp($passenger_installed_version, '2.0.0') < 0) {
555 fail("Passenger config option :: passenger_high_performance is not introduced until version 2.0.0 :: ${passenger_installed_version} is the version reported")
556 }
557 }
558 if $passenger_instance_registry_dir { 467 if $passenger_instance_registry_dir {
559 if (versioncmp($passenger_installed_version, '5.0.0') < 0) { 468 if (versioncmp($passenger_installed_version, '5.0.0') < 0) {
560 fail("Passenger config option :: passenger_instance_registry_dir is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported") 469 fail("Passenger config option :: passenger_instance_registry_dir is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported")
561 } 470 }
562 } 471 }
573 if $passenger_log_file { 482 if $passenger_log_file {
574 if (versioncmp($passenger_installed_version, '5.0.5') < 0) { 483 if (versioncmp($passenger_installed_version, '5.0.5') < 0) {
575 fail("Passenger config option :: passenger_log_file is not introduced until version 5.0.5 :: ${passenger_installed_version} is the version reported") 484 fail("Passenger config option :: passenger_log_file is not introduced until version 5.0.5 :: ${passenger_installed_version} is the version reported")
576 } 485 }
577 } 486 }
578 if $passenger_log_level {
579 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
580 fail("Passenger config option :: passenger_log_level is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
581 }
582 }
583 if $passenger_lve_min_uid { 487 if $passenger_lve_min_uid {
584 if (versioncmp($passenger_installed_version, '5.0.28') < 0) { 488 if (versioncmp($passenger_installed_version, '5.0.28') < 0) {
585 fail("Passenger config option :: passenger_lve_min_uid is not introduced until version 5.0.28 :: ${passenger_installed_version} is the version reported") 489 fail("Passenger config option :: passenger_lve_min_uid is not introduced until version 5.0.28 :: ${passenger_installed_version} is the version reported")
586 } 490 }
587 } 491 }
588 if $passenger_max_instances {
589 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
590 fail("Passenger config option :: passenger_max_instances is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
591 }
592 }
593 if $passenger_max_instances_per_app {
594 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
595 fail("Passenger config option :: passenger_max_instances_per_app is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
596 }
597 }
598 if $passenger_max_pool_size {
599 if (versioncmp($passenger_installed_version, '1.0.0') < 0) {
600 fail("Passenger config option :: passenger_max_pool_size is not introduced until version 1.0.0 :: ${passenger_installed_version} is the version reported")
601 }
602 }
603 if $passenger_max_preloader_idle_time {
604 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
605 fail("Passenger config option :: passenger_max_preloader_idle_time is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
606 }
607 }
608 if $passenger_max_request_queue_size { 492 if $passenger_max_request_queue_size {
609 if (versioncmp($passenger_installed_version, '4.0.15') < 0) { 493 if (versioncmp($passenger_installed_version, '4.0.15') < 0) {
610 fail("Passenger config option :: passenger_max_request_queue_size is not introduced until version 4.0.15 :: ${passenger_installed_version} is the version reported") 494 fail("Passenger config option :: passenger_max_request_queue_size is not introduced until version 4.0.15 :: ${passenger_installed_version} is the version reported")
611 } 495 }
612 } 496 }
613 if $passenger_max_request_time {
614 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
615 fail("Passenger config option :: passenger_max_request_time is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
616 }
617 }
618 if $passenger_max_requests {
619 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
620 fail("Passenger config option :: passenger_max_requests is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
621 }
622 }
623 if $passenger_memory_limit {
624 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
625 fail("Passenger config option :: passenger_memory_limit is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
626 }
627 }
628 if $passenger_meteor_app_settings { 497 if $passenger_meteor_app_settings {
629 if (versioncmp($passenger_installed_version, '5.0.7') < 0) { 498 if (versioncmp($passenger_installed_version, '5.0.7') < 0) {
630 fail("Passenger config option :: passenger_meteor_app_settings is not introduced until version 5.0.7 :: ${passenger_installed_version} is the version reported") 499 fail("Passenger config option :: passenger_meteor_app_settings is not introduced until version 5.0.7 :: ${passenger_installed_version} is the version reported")
631 } 500 }
632 } 501 }
633 if $passenger_min_instances {
634 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
635 fail("Passenger config option :: passenger_min_instances is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
636 }
637 }
638 if $passenger_nodejs { 502 if $passenger_nodejs {
639 if (versioncmp($passenger_installed_version, '4.0.24') < 0) { 503 if (versioncmp($passenger_installed_version, '4.0.24') < 0) {
640 fail("Passenger config option :: passenger_nodejs is not introduced until version 4.0.24 :: ${passenger_installed_version} is the version reported") 504 fail("Passenger config option :: passenger_nodejs is not introduced until version 4.0.24 :: ${passenger_installed_version} is the version reported")
641 } 505 }
642 } 506 }
643 if $passenger_pool_idle_time {
644 if (versioncmp($passenger_installed_version, '1.0.0') < 0) {
645 fail("Passenger config option :: passenger_pool_idle_time is not introduced until version 1.0.0 :: ${passenger_installed_version} is the version reported")
646 }
647 }
648 if $passenger_pre_start {
649 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
650 fail("Passenger config option :: passenger_pre_start is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
651 }
652 }
653 if $passenger_python {
654 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
655 fail("Passenger config option :: passenger_python is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
656 }
657 }
658 if $passenger_resist_deployment_errors {
659 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
660 fail("Passenger config option :: passenger_resist_deployment_errors is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
661 }
662 }
663 if $passenger_resolve_symlinks_in_document_root {
664 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
665 fail("Passenger config option :: passenger_resolve_symlinks_in_document_root is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
666 }
667 }
668 if $passenger_response_buffer_high_watermark { 507 if $passenger_response_buffer_high_watermark {
669 if (versioncmp($passenger_installed_version, '5.0.0') < 0) { 508 if (versioncmp($passenger_installed_version, '5.0.0') < 0) {
670 fail("Passenger config option :: passenger_response_buffer_high_watermark is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported") 509 fail("Passenger config option :: passenger_response_buffer_high_watermark is not introduced until version 5.0.0 :: ${passenger_installed_version} is the version reported")
671 } 510 }
672 } 511 }
673 if $passenger_restart_dir {
674 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
675 fail("Passenger config option :: passenger_restart_dir is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
676 }
677 }
678 if $passenger_rolling_restarts {
679 if (versioncmp($passenger_installed_version, '3.0.0') < 0) {
680 fail("Passenger config option :: passenger_rolling_restarts is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported")
681 }
682 }
683 if $passenger_root {
684 if (versioncmp($passenger_installed_version, '1.0.0') < 0) {
685 fail("Passenger config option :: passenger_root is not introduced until version 1.0.0 :: ${passenger_installed_version} is the version reported")
686 }
687 }
688 if $passenger_ruby {
689 if (versioncmp($passenger_installed_version, '4.0.0') < 0) {
690 fail("Passenger config option :: passenger_ruby is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported")
691 }
692 }
693 if $passenger_security_update_check_proxy { 512 if $passenger_security_update_check_proxy {
694 if (versioncmp($passenger_installed_version, '5.1.0') < 0) { 513 if (versioncmp($passenger_installed_version, '5.1.0') < 0) {
695 fail("Passenger config option :: passenger_security_update_check_proxy is not introduced until version 5.1.0 :: ${passenger_installed_version} is the version reported") 514 fail("Passenger config option :: passenger_security_update_check_proxy is not introduced until version 5.1.0 :: ${passenger_installed_version} is the version reported")
696 } 515 }
697 } 516 }
708 if $passenger_spawn_dir { 527 if $passenger_spawn_dir {
709 if (versioncmp($passenger_installed_version, '6.0.3') < 0) { 528 if (versioncmp($passenger_installed_version, '6.0.3') < 0) {
710 fail("Passenger config option :: passenger_spawn_dir is not introduced until version 6.0.3 :: ${passenger_installed_version} is the version reported") 529 fail("Passenger config option :: passenger_spawn_dir is not introduced until version 6.0.3 :: ${passenger_installed_version} is the version reported")
711 } 530 }
712 } 531 }
713 if $passenger_spawn_method {
714 if (versioncmp($passenger_installed_version, '2.0.0') < 0) {
715 fail("Passenger config option :: passenger_spawn_method is not introduced until version 2.0.0 :: ${passenger_installed_version} is the version reported")
716 }
717 }
718 if $passenger_start_timeout { 532 if $passenger_start_timeout {
719 if (versioncmp($passenger_installed_version, '4.0.15') < 0) { 533 if (versioncmp($passenger_installed_version, '4.0.15') < 0) {
720 fail("Passenger config option :: passenger_start_timeout is not introduced until version 4.0.15 :: ${passenger_installed_version} is the version reported") 534 fail("Passenger config option :: passenger_start_timeout is not introduced until version 4.0.15 :: ${passenger_installed_version} is the version reported")
721 } 535 }
722 } 536 }
723 if $passenger_startup_file { 537 if $passenger_startup_file {
724 if (versioncmp($passenger_installed_version, '4.0.25') < 0) { 538 if (versioncmp($passenger_installed_version, '4.0.25') < 0) {
725 fail("Passenger config option :: passenger_startup_file is not introduced until version 4.0.25 :: ${passenger_installed_version} is the version reported") 539 fail("Passenger config option :: passenger_startup_file is not introduced until version 4.0.25 :: ${passenger_installed_version} is the version reported")
726 } 540 }
727 } 541 }
728 if $passenger_stat_throttle_rate {
729 if (versioncmp($passenger_installed_version, '2.2.0') < 0) {
730 fail("Passenger config option :: passenger_stat_throttle_rate is not introduced until version 2.2.0 :: ${passenger_installed_version} is the version reported")
731 }
732 }
733 if $passenger_sticky_sessions { 542 if $passenger_sticky_sessions {
734 if (versioncmp($passenger_installed_version, '4.0.45') < 0) { 543 if (versioncmp($passenger_installed_version, '4.0.45') < 0) {
735 fail("Passenger config option :: passenger_sticky_sessions is not introduced until version 4.0.45 :: ${passenger_installed_version} is the version reported") 544 fail("Passenger config option :: passenger_sticky_sessions is not introduced until version 4.0.45 :: ${passenger_installed_version} is the version reported")
736 } 545 }
737 } 546 }
743 if $passenger_sticky_sessions_cookie_attributes { 552 if $passenger_sticky_sessions_cookie_attributes {
744 if (versioncmp($passenger_installed_version, '6.0.5') < 0) { 553 if (versioncmp($passenger_installed_version, '6.0.5') < 0) {
745 fail("Passenger config option :: passenger_sticky_sessions_cookie_attributes is not introduced until version 6.0.5 :: ${passenger_installed_version} is the version reported") 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")
746 } 555 }
747 } 556 }
748 if $passenger_thread_count { 557 if $passenger_max_request_queue_time {
749 if (versioncmp($passenger_installed_version, '4.0.0') < 0) { 558 if (versioncmp($passenger_installed_version, '5.1.12') < 0) {
750 fail("Passenger config option :: passenger_thread_count is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported") 559 fail("Passenger config option :: passenger_base_uri is not introduced until version 5.1.12 :: ${passenger_installed_version} is the version reported")
751 } 560 }
752 } 561 }
753 if $passenger_use_global_queue { 562 if $passenger_admin_panel_url {
754 if (versioncmp($passenger_installed_version, '4.0.0') > 0) { 563 if (versioncmp($passenger_installed_version, '5.2.2') < 0) {
755 fail('REMOVED PASSENGER OPTION :: passenger_use_global_queue :: -- no message on the current passenger reference webpage -- ') 564 fail("Passenger config option :: passenger_admin_panel_url is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported")
756 } 565 }
757 if (versioncmp($passenger_installed_version, '2.0.4') < 0) { 566 }
758 fail("Passenger config option :: passenger_use_global_queue is not introduced until version 2.0.4 :: ${passenger_installed_version} is the version reported") 567 if $passenger_admin_panel_auth_type {
759 } 568 if (versioncmp($passenger_installed_version, '5.2.2') < 0) {
760 } 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")
761 if $passenger_user { 570 }
762 if (versioncmp($passenger_installed_version, '4.0.0') < 0) { 571 }
763 fail("Passenger config option :: passenger_user is not introduced until version 4.0.0 :: ${passenger_installed_version} is the version reported") 572 if $passenger_admin_panel_username {
764 } 573 if (versioncmp($passenger_installed_version, '5.2.2') < 0) {
765 } 574 fail("Passenger config option :: passenger_admin_panel_username is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported")
766 if $passenger_user_switching { 575 }
767 if (versioncmp($passenger_installed_version, '3.0.0') < 0) { 576 }
768 fail("Passenger config option :: passenger_user_switching is not introduced until version 3.0.0 :: ${passenger_installed_version} is the version reported") 577 if $passenger_admin_panel_password {
769 } 578 if (versioncmp($passenger_installed_version, '5.2.2') < 0) {
770 } 579 fail("Passenger config option :: passenger_admin_panel_password is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported")
771 if ($rack_auto_detect or $rack_autodetect) { 580 }
772 if (versioncmp($passenger_installed_version, '4.0.0') > 0) { 581 }
773 fail('REMOVED PASSENGER OPTION :: rack_auto_detect :: These options have been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.') 582 if $passenger_dump_config_manifest {
774 } 583 if (versioncmp($passenger_installed_version, '5.2.2') < 0) {
775 } 584 fail("Passenger config option :: passenger_dump_config_manifest is not introduced until version 5.2.2 :: ${passenger_installed_version} is the version reported")
776 if $rack_base_uri { 585 }
777 if (versioncmp($passenger_installed_version, '3.0.0') > 0) { 586 }
778 warning('DEPRECATED PASSENGER OPTION :: rack_base_uri :: Deprecated in 3.0.0 in favor of PassengerBaseURI.') 587 if $passenger_app_log_file {
779 } 588 if (versioncmp($passenger_installed_version, '5.3.0') < 0) {
780 } 589 fail("Passenger config option :: passenger_app_log_file is not introduced until version 5.3.0 :: ${passenger_installed_version} is the version reported")
781 if $rack_env { 590 }
782 if (versioncmp($passenger_installed_version, '2.0.0') < 0) { 591 }
783 fail("Passenger config option :: rack_env is not introduced until version 2.0.0 :: ${passenger_installed_version} is the version reported") 592 if $passenger_resist_deployment_errors {
784 } 593 if (versioncmp($passenger_installed_version, '5.2.0') > 0) {
785 } 594 fail('REMOVED PASSENGER OPTION :: passenger_resist_deployment_errors :: -- no message on the current passenger reference webpage -- ')
786 if $rails_allow_mod_rewrite {
787 if (versioncmp($passenger_installed_version, '4.0.0') > 0) {
788 warning("DEPRECATED PASSENGER OPTION :: rails_allow_mod_rewrite :: This option doesn't do anything anymore in since version 4.0.0.")
789 }
790 }
791 if $rails_app_spawner_idle_time {
792 if (versioncmp($passenger_installed_version, '4.0.0') > 0) {
793 fail('REMOVED PASSENGER OPTION :: rails_app_spawner_idle_time :: This option has been removed in version 4.0.0, and replaced with PassengerMaxPreloaderIdleTime.')
794 }
795 }
796 if ($rails_auto_detect or $rails_autodetect) {
797 if (versioncmp($passenger_installed_version, '4.0.0') > 0) {
798 fail('REMOVED PASSENGER OPTION :: rails_auto_detect :: These options have been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.')
799 }
800 }
801 if $rails_base_uri {
802 if (versioncmp($passenger_installed_version, '3.0.0') > 0) {
803 warning('DEPRECATED PASSENGER OPTION :: rails_base_uri :: Deprecated in 3.0.0 in favor of PassengerBaseURI.')
804 }
805 }
806 if $rails_default_user {
807 if (versioncmp($passenger_installed_version, '3.0.0') > 0) {
808 warning('DEPRECATED PASSENGER OPTION :: rails_default_user :: Deprecated in 3.0.0 in favor of PassengerDefaultUser.')
809 }
810 }
811 if $rails_env {
812 if (versioncmp($passenger_installed_version, '2.0.0') < 0) {
813 fail("Passenger config option :: rails_env is not introduced until version 2.0.0 :: ${passenger_installed_version} is the version reported")
814 }
815 }
816 if $rails_framework_spawner_idle_time {
817 if (versioncmp($passenger_installed_version, '4.0.0') > 0) {
818 fail('REMOVED PASSENGER OPTION :: rails_framework_spawner_idle_time :: This option is no longer available in version 4.0.0. There is no alternative because framework spawning has been removed altogether. You should use smart spawning instead.')
819 }
820 }
821 if $rails_ruby {
822 if (versioncmp($passenger_installed_version, '3.0.0') > 0) {
823 warning('DEPRECATED PASSENGER OPTION :: rails_ruby :: Deprecated in 3.0.0 in favor of PassengerRuby.')
824 }
825 }
826 if $rails_spawn_method {
827 if (versioncmp($passenger_installed_version, '3.0.0') > 0) {
828 warning('DEPRECATED PASSENGER OPTION :: rails_spawn_method :: Deprecated in 3.0.0 in favor of PassengerSpawnMethod.')
829 }
830 }
831 if $rails_user_switching {
832 if (versioncmp($passenger_installed_version, '3.0.0') > 0) {
833 warning('DEPRECATED PASSENGER OPTION :: rails_user_switching :: Deprecated in 3.0.0 in favor of PassengerUserSwitching.')
834 }
835 }
836 if $wsgi_auto_detect {
837 if (versioncmp($passenger_installed_version, '4.0.0') > 0) {
838 fail('REMOVED PASSENGER OPTION :: wsgi_auto_detect :: These options have been removed in version 4.0.0 as part of an optimization. You should use PassengerEnabled instead.')
839 } 595 }
840 } 596 }
841 } 597 }
842 # Managed by the package, but declare it to avoid purging 598 # Managed by the package, but declare it to avoid purging
843 if $passenger_conf_package_file { 599 if $passenger_conf_package_file {
958 # - $passenger_startup_file : since 4.0.25. 714 # - $passenger_startup_file : since 4.0.25.
959 # - $passenger_stat_throttle_rate : since 2.2.0. 715 # - $passenger_stat_throttle_rate : since 2.2.0.
960 # - $passenger_sticky_sessions : since 4.0.45. 716 # - $passenger_sticky_sessions : since 4.0.45.
961 # - $passenger_sticky_sessions_cookie_name : since 4.0.45. 717 # - $passenger_sticky_sessions_cookie_name : since 4.0.45.
962 # - $passenger_thread_count : since 4.0.0. 718 # - $passenger_thread_count : since 4.0.0.
963 # - $passenger_use_global_queue : since 2.0.4.Deprecated in 4.0.0.
964 # - $passenger_user : since 4.0.0. 719 # - $passenger_user : since 4.0.0.
965 # - $passenger_user_switching : since 3.0.0. 720 # - $passenger_user_switching : since 3.0.0.
966 # - $rack_auto_detect : since unkown. Deprecated in 4.0.0. 721 # - $passenger_dump_config_manifest : since 5.2.2
967 # - $rack_base_uri : since unkown. Deprecated in 3.0.0. 722 # - $passenger_admin_panel_url : since 5.2.2
968 # - $rack_env : since 2.0.0. 723 # - $passenger_admin_panel_auth_type : since 5.2.2
969 # - $rails_allow_mod_rewrite : since unkown. Deprecated in 4.0.0. 724 # - $passenger_admin_panel_username : since 5.2.2
970 # - $rails_app_spawner_idle_time : since unkown. Deprecated in 4.0.0. 725 # - $passenger_admin_panel_password : since 5.2.2
971 # - $rails_auto_detect : since unkown. Deprecated in 4.0.0. 726 # - $passenger_app_log_file : since 5.3.0
972 # - $rails_base_uri : since unkown. Deprecated in 3.0.0. 727 # - $passenger_max_request_queue_time : since 5.1.12
973 # - $rails_default_user : since unkown. Deprecated in 3.0.0. 728
974 # - $rails_env : since 2.0.0. 729 $parameters = {
975 # - $rails_framework_spawner_idle_time : since unkown. Deprecated in 4.0.0. 730 'passenger_admin_panel_url' => $passenger_admin_panel_url,
976 # - $rails_ruby : since unkown. Deprecated in 3.0.0. 731 'passenger_admin_panel_auth_type' => $passenger_admin_panel_auth_type,
977 # - $rails_spawn_method : since unkown. Deprecated in 3.0.0. 732 'passenger_admin_panel_username' => $passenger_admin_panel_username,
978 # - $rails_user_switching : since unkown. Deprecated in 3.0.0. 733 'passenger_admin_panel_password' => $passenger_admin_panel_password,
979 # - $wsgi_auto_detect : since unkown. Deprecated in 4.0.0. 734 'passenger_allow_encoded_slashes' => $passenger_allow_encoded_slashes,
980 # - $rails_autodetect : this options is only for backward compatiblity with older versions of this class 735 'passenger_anonymous_telemetry_proxy' => $passenger_anonymous_telemetry_proxy,
981 # - $rack_autodetect : this options is only for backward compatiblity with older versions of this class 736 'passenger_app_env' => $passenger_app_env,
737 'passenger_app_group_name' => $passenger_app_group_name,
738 'passenger_app_log_file' => $passenger_app_log_file,
739 'passenger_app_root' => $passenger_app_root,
740 'passenger_app_type' => $passenger_app_type,
741 'passenger_base_uri' => $passenger_base_uri,
742 'passenger_buffer_response' => $passenger_buffer_response,
743 'passenger_buffer_upload' => $passenger_buffer_upload,
744 'passenger_concurrency_model' => $passenger_concurrency_model,
745 'passenger_data_buffer_dir' => $passenger_data_buffer_dir,
746 'passenger_debug_log_file' => $passenger_debug_log_file,
747 'passenger_debugger' => $passenger_debugger,
748 'passenger_default_group' => $passenger_default_group,
749 'passenger_default_ruby' => $passenger_default_ruby,
750 'passenger_default_user' => $passenger_default_user,
751 'passenger_disable_anonymous_telemetry' => $passenger_disable_anonymous_telemetry,
752 'passenger_disable_log_prefix' => $passenger_disable_log_prefix,
753 'passenger_disable_security_update_check' => $passenger_disable_security_update_check,
754 'passenger_enabled' => $passenger_enabled,
755 'passenger_error_override' => $passenger_error_override,
756 'passenger_file_descriptor_log_file' => $passenger_file_descriptor_log_file,
757 'passenger_fly_with' => $passenger_fly_with,
758 'passenger_force_max_concurrent_requests_per_process' => $passenger_force_max_concurrent_requests_per_process,
759 'passenger_friendly_error_pages' => $passenger_friendly_error_pages,
760 'passenger_group' => $passenger_group,
761 'passenger_high_performance' => $passenger_high_performance,
762 'passenger_instance_registry_dir' => $passenger_instance_registry_dir,
763 'passenger_load_shell_envvars' => $passenger_load_shell_envvars,
764 'passenger_preload_bundler' => $passenger_preload_bundler,
765 'passenger_log_file' => $passenger_log_file,
766 'passenger_dump_config_manifest' => $passenger_dump_config_manifest,
767 'passenger_log_level' => $passenger_log_level,
768 'passenger_lve_min_uid' => $passenger_lve_min_uid,
769 'passenger_max_instances' => $passenger_max_instances,
770 'passenger_max_instances_per_app' => $passenger_max_instances_per_app,
771 'passenger_max_pool_size' => $passenger_max_pool_size,
772 'passenger_max_preloader_idle_time' => $passenger_max_preloader_idle_time,
773 'passenger_max_request_queue_size' => $passenger_max_request_queue_size,
774 'passenger_max_request_queue_time' => $passenger_max_request_queue_time,
775 'passenger_max_request_time' => $passenger_max_request_time,
776 'passenger_max_requests' => $passenger_max_requests,
777 'passenger_memory_limit' => $passenger_memory_limit,
778 'passenger_meteor_app_settings' => $passenger_meteor_app_settings,
779 'passenger_min_instances' => $passenger_min_instances,
780 'passenger_nodejs' => $passenger_nodejs,
781 'passenger_pool_idle_time' => $passenger_pool_idle_time,
782 'passenger_pre_start' => $passenger_pre_start,
783 'passenger_python' => $passenger_python,
784 'passenger_resist_deployment_errors' => $passenger_resist_deployment_errors,
785 'passenger_resolve_symlinks_in_document_root' => $passenger_resolve_symlinks_in_document_root,
786 'passenger_response_buffer_high_watermark' => $passenger_response_buffer_high_watermark,
787 'passenger_restart_dir' => $passenger_restart_dir,
788 'passenger_rolling_restarts' => $passenger_rolling_restarts,
789 'passenger_root' => $passenger_root,
790 'passenger_ruby' => $passenger_ruby,
791 'passenger_security_update_check_proxy' => $passenger_security_update_check_proxy,
792 'passenger_show_version_in_header' => $passenger_show_version_in_header,
793 'passenger_socket_backlog' => $passenger_socket_backlog,
794 'passenger_spawn_dir' => $passenger_spawn_dir,
795 'passenger_spawn_method' => $passenger_spawn_method,
796 'passenger_start_timeout' => $passenger_start_timeout,
797 'passenger_startup_file' => $passenger_startup_file,
798 'passenger_stat_throttle_rate' => $passenger_stat_throttle_rate,
799 'passenger_sticky_sessions' => $passenger_sticky_sessions,
800 'passenger_sticky_sessions_cookie_name' => $passenger_sticky_sessions_cookie_name,
801 'passenger_sticky_sessions_cookie_attributes' => $passenger_sticky_sessions_cookie_attributes,
802 'passenger_thread_count' => $passenger_thread_count,
803 'passenger_use_global_queue' => $passenger_use_global_queue,
804 'passenger_user' => $passenger_user,
805 'passenger_user_switching' => $passenger_user_switching,
806 'rack_env' => $rack_env,
807 'rails_env' => $rails_env,
808 'rails_framework_spawner_idle_time' => $rails_framework_spawner_idle_time,
809 }
810
982 file { 'passenger.conf': 811 file { 'passenger.conf':
983 ensure => file, 812 ensure => file,
984 path => "${apache::mod_dir}/${passenger_conf_file}", 813 path => "${apache::mod_dir}/${passenger_conf_file}",
985 content => template('apache/mod/passenger.conf.erb'), 814 content => epp('apache/mod/passenger.conf.epp', $parameters),
986 require => Exec["mkdir ${apache::mod_dir}"], 815 require => Exec["mkdir ${apache::mod_dir}"],
987 before => File[$apache::mod_dir], 816 before => File[$apache::mod_dir],
988 notify => Class['apache::service'], 817 notify => Class['apache::service'],
989 } 818 }
990 } 819 }