|
2409 | 2409 | content => " ServerSignature Off\n",
|
2410 | 2410 | }
|
2411 | 2411 |
|
| 2412 | + # Template uses: |
| 2413 | + # - $_access_logs |
| 2414 | + # - $_access_log_env_var |
| 2415 | + # - $access_log_destination |
| 2416 | + # - $_access_log_format |
| 2417 | + # - $_access_log_env_var |
2412 | 2418 | if !empty($_access_logs) {
|
2413 | 2419 | concat::fragment { "${name}-access_log":
|
2414 | 2420 | target => "${priority_real}${filename}.conf",
|
|
2425 | 2431 | }
|
2426 | 2432 | }
|
2427 | 2433 |
|
| 2434 | + # Template uses: |
| 2435 | + # - $block |
2428 | 2436 | if $block and ! empty($block) {
|
2429 | 2437 | concat::fragment { "${name}-block":
|
2430 | 2438 | target => "${priority_real}${filename}.conf",
|
|
2433 | 2441 | }
|
2434 | 2442 | }
|
2435 | 2443 |
|
| 2444 | + # Template uses: |
| 2445 | + # - $error_documents |
2436 | 2446 | if $error_documents and ! empty($error_documents) {
|
2437 | 2447 | concat::fragment { "${name}-error_document":
|
2438 | 2448 | target => "${priority_real}${filename}.conf",
|
|
2514 | 2524 | }
|
2515 | 2525 | }
|
2516 | 2526 |
|
| 2527 | + # Template uses: |
| 2528 | + # - $redirect_source |
| 2529 | + # - $redirect_dest |
| 2530 | + # - $redirect_status |
| 2531 | + # - $redirect_dest_a |
| 2532 | + # - $redirect_source_a |
| 2533 | + # - $redirect_status_a |
| 2534 | + # - $redirectmatch_status |
| 2535 | + # - $redirectmatch_regexp |
| 2536 | + # - $redirectmatch_dest |
| 2537 | + # - $redirectmatch_status_a |
| 2538 | + # - $redirectmatch_regexp_a |
| 2539 | + # - $redirectmatch_dest |
2517 | 2540 | if (($redirect_source and $redirect_dest) or ($redirectmatch_regexp and $redirectmatch_dest)) and $ensure == 'present' {
|
2518 | 2541 | include apache::mod::alias
|
2519 | 2542 |
|
|
2524 | 2547 | }
|
2525 | 2548 | }
|
2526 | 2549 |
|
| 2550 | + # Template uses: |
| 2551 | + # - $rewrites |
| 2552 | + # - $rewrite_inherit |
| 2553 | + # - $rewrite_base |
| 2554 | + # - $rewrite_rule |
| 2555 | + # - $rewrite_cond |
| 2556 | + # - $rewrite_map |
2527 | 2557 | if (! empty($rewrites) or $rewrite_rule or $rewrite_inherit) and $ensure == 'present' {
|
2528 | 2558 | include apache::mod::rewrite
|
2529 | 2559 | $rewrite_params = {
|
|
2557 | 2587 | }
|
2558 | 2588 | }
|
2559 | 2589 |
|
| 2590 | + # Template uses: |
| 2591 | + # - $setenv |
| 2592 | + # - $setenvif |
| 2593 | + # - $setenvifnocase |
2560 | 2594 | $use_env_mod = !empty($setenv)
|
2561 | 2595 | $use_setenvif_mod = !empty($setenvif) or !empty($setenvifnocase)
|
2562 | 2596 | if ($use_env_mod or $use_setenvif_mod) and $ensure == 'present' {
|
|
2574 | 2608 | }
|
2575 | 2609 | }
|
2576 | 2610 |
|
| 2611 | + # Template uses: |
| 2612 | + # - $ssl |
| 2613 | + # - $ssl_cert |
| 2614 | + # - $ssl_key |
| 2615 | + # - $ssl_chain |
| 2616 | + # - $ssl_certs_dir |
| 2617 | + # - $ssl_ca |
| 2618 | + # - $ssl_crl_path |
| 2619 | + # - $ssl_crl |
| 2620 | + # - $ssl_crl_check |
| 2621 | + # - $ssl_protocol |
| 2622 | + # - $ssl_cipher |
| 2623 | + # - $_ssl_honorcipherorder |
| 2624 | + # - $ssl_verify_client |
| 2625 | + # - $ssl_verify_depth |
| 2626 | + # - $ssl_options |
| 2627 | + # - $ssl_openssl_conf_cmd |
| 2628 | + # - $ssl_stapling |
| 2629 | + # - $mdomain |
2577 | 2630 | if $ssl and $ensure == 'present' {
|
2578 | 2631 | include apache::mod::ssl
|
2579 | 2632 |
|
|
2623 | 2676 | }
|
2624 | 2677 | }
|
2625 | 2678 |
|
| 2679 | + # Template uses: |
| 2680 | + # - $php_values |
| 2681 | + # - $php_flags |
2626 | 2682 | if ($php_values and ! empty($php_values)) or ($php_flags and ! empty($php_flags)) {
|
2627 | 2683 | concat::fragment { "${name}-php":
|
2628 | 2684 | target => "${priority_real}${filename}.conf",
|
|
2631 | 2687 | }
|
2632 | 2688 | }
|
2633 | 2689 |
|
| 2690 | + # Template uses: |
| 2691 | + # - $php_admin_values |
| 2692 | + # - $php_admin_flags |
2634 | 2693 | if ($php_admin_values and ! empty($php_admin_values)) or ($php_admin_flags and ! empty($php_admin_flags)) {
|
2635 | 2694 | concat::fragment { "${name}-php_admin":
|
2636 | 2695 | target => "${priority_real}${filename}.conf",
|
|
2664 | 2723 | }
|
2665 | 2724 | }
|
2666 | 2725 |
|
| 2726 | + # Template uses: |
| 2727 | + # - $custom_fragment |
2667 | 2728 | if $custom_fragment {
|
2668 | 2729 | $custom_fragment_params = {
|
2669 | 2730 | 'custom_fragment' => $custom_fragment,
|
|
0 commit comments