|
459 | 459 | class apache ( |
460 | 460 | String $apache_name = $apache::params::apache_name, |
461 | 461 | String $service_name = $apache::params::service_name, |
462 | | - Variant[Array, Boolean] $default_mods = true, |
| 462 | + Variant[Array[String[1]], Boolean] $default_mods = true, |
463 | 463 | Boolean $default_vhost = true, |
464 | 464 | Optional[String] $default_charset = undef, |
465 | 465 | Boolean $default_confd_files = true, |
|
727 | 727 | } |
728 | 728 | concat::fragment { 'Apache ports header': |
729 | 729 | target => $ports_file, |
730 | | - content => template('apache/ports_header.erb'), |
| 730 | + content => epp('apache/ports_header.epp'), |
731 | 731 | } |
732 | 732 |
|
733 | 733 | if $apache::conf_dir and $apache::params::conf_file { |
|
782 | 782 | # - $server_signature |
783 | 783 | # - $trace_enable |
784 | 784 | # - $root_directory_secured |
| 785 | + $parameters = { |
| 786 | + 'server_tokens' => $server_tokens, |
| 787 | + 'server_signature' => $server_signature, |
| 788 | + 'trace_enable' => $trace_enable, |
| 789 | + 'servername' => $servername, |
| 790 | + 'server_root' => $server_root, |
| 791 | + 'serveradmin' => $serveradmin, |
| 792 | + 'pidfile' => $pidfile, |
| 793 | + 'timeout' => $timeout, |
| 794 | + 'keepalive' => $keepalive, |
| 795 | + 'max_keepalive_requests' => $max_keepalive_requests, |
| 796 | + 'keepalive_timeout' => $keepalive_timeout, |
| 797 | + 'limitreqfieldsize' => $limitreqfieldsize, |
| 798 | + 'limitreqfields' => $limitreqfields, |
| 799 | + 'limitreqline' => $limitreqline, |
| 800 | + 'http_protocol_options' => $http_protocol_options, |
| 801 | + 'protocols' => $protocols, |
| 802 | + 'protocols_honor_order' => $protocols_honor_order, |
| 803 | + 'user' => $user, |
| 804 | + 'group' => $group, |
| 805 | + 'root_directory_options' => $root_directory_options, |
| 806 | + 'root_directory_secured' => $root_directory_secured, |
| 807 | + 'default_charset' => $default_charset, |
| 808 | + 'hostname_lookups' => $hostname_lookups, |
| 809 | + 'error_log' => $error_log, |
| 810 | + 'logroot' => $logroot, |
| 811 | + 'log_level' => $log_level, |
| 812 | + 'sendfile' => $sendfile, |
| 813 | + 'allow_encoded_slashes' => $allow_encoded_slashes, |
| 814 | + 'file_e_tag' => $file_e_tag, |
| 815 | + 'use_canonical_name' => $use_canonical_name, |
| 816 | + 'apxs_workaround' => $apxs_workaround, |
| 817 | + 'mod_load_dir' => $mod_load_dir, |
| 818 | + 'confd_dir' => $confd_dir, |
| 819 | + 'vhost_load_dir' => $vhost_load_dir, |
| 820 | + 'vhost_include_pattern' => $vhost_include_pattern, |
| 821 | + 'ports_file' => $ports_file, |
| 822 | + 'log_formats' => $log_formats, |
| 823 | + 'conf_enabled' => $conf_enabled, |
| 824 | + 'ldap_verify_server_cert' => $ldap_verify_server_cert, |
| 825 | + 'ldap_trusted_mode' => $ldap_trusted_mode, |
| 826 | + 'error_documents' => $error_documents, |
| 827 | + 'error_documents_path' => $error_documents_path, |
| 828 | + } |
| 829 | + |
| 830 | + notice $conf_template |
| 831 | + |
785 | 832 | file { "${apache::conf_dir}/${apache::params::conf_file}": |
786 | 833 | ensure => file, |
787 | 834 | mode => $apache::file_mode, |
788 | | - content => template($conf_template), |
| 835 | + content => epp($conf_template, $parameters), |
789 | 836 | notify => Class['Apache::Service'], |
790 | 837 | require => [Package['httpd'], Concat[$ports_file]], |
791 | 838 | } |
|
0 commit comments