|
61 | 61 | $server_root = "${httpd_root}/etc/httpd" |
62 | 62 | $conf_dir = "${httpd_dir}/conf" |
63 | 63 | $confd_dir = "${httpd_dir}/conf.d" |
64 | | - $mod_dir = $apache::version::distrelease ? { |
| 64 | + $mod_dir = $facts['operatingsystemmajrelease'] ? { |
65 | 65 | '7' => "${httpd_dir}/conf.modules.d", |
66 | 66 | default => "${httpd_dir}/conf.d", |
67 | 67 | } |
|
107 | 107 | $mime_support_package = 'mailcap' |
108 | 108 | $mime_types_config = '/etc/mime.types' |
109 | 109 | $docroot = "${httpd_root}/var/www/html" |
110 | | - $alias_icons_path = $apache::version::distrelease ? { |
| 110 | + $alias_icons_path = $facts['operatingsystemmajrelease'] ? { |
111 | 111 | '7' => "${httpd_root}/usr/share/httpd/icons", |
112 | 112 | default => '/var/www/icons', |
113 | 113 | } |
114 | | - $error_documents_path = $apache::version::distrelease ? { |
| 114 | + $error_documents_path = $facts['operatingsystemmajrelease'] ? { |
115 | 115 | '7' => "${httpd_root}/usr/share/httpd/error", |
116 | 116 | default => '/var/www/error' |
117 | 117 | } |
|
172 | 172 | # Amazon Linux 2 uses the /conf.modules.d/ dir |
173 | 173 | $mod_dir = "${httpd_dir}/conf.modules.d" |
174 | 174 | } else { |
175 | | - $mod_dir = $apache::version::distrelease ? { |
| 175 | + $mod_dir = $facts['operatingsystemmajrelease'] ? { |
176 | 176 | '7' => "${httpd_dir}/conf.modules.d", |
177 | 177 | '8' => "${httpd_dir}/conf.modules.d", |
178 | 178 | default => "${httpd_dir}/conf.d", |
|
200 | 200 | $suphp_addhandler = 'php5-script' |
201 | 201 | $suphp_engine = 'off' |
202 | 202 | $suphp_configpath = undef |
203 | | - $php_version = $apache::version::distrelease ? { |
| 203 | + $php_version = $facts['operatingsystemmajrelease'] ? { |
204 | 204 | '8' => '7', # RedHat8 |
205 | 205 | default => '5', # RedHat5, RedHat6, RedHat7 |
206 | 206 | } |
|
211 | 211 | 'auth_gssapi' => 'mod_auth_gssapi', |
212 | 212 | 'auth_mellon' => 'mod_auth_mellon', |
213 | 213 | 'auth_openidc' => 'mod_auth_openidc', |
214 | | - 'authnz_ldap' => $apache::version::distrelease ? { |
| 214 | + 'authnz_ldap' => $facts['operatingsystemmajrelease'] ? { |
215 | 215 | '7' => 'mod_ldap', |
216 | 216 | '8' => 'mod_ldap', |
217 | 217 | default => 'mod_authz_ldap', |
218 | 218 | }, |
219 | 219 | 'authnz_pam' => 'mod_authnz_pam', |
220 | | - 'fastcgi' => $apache::version::distrelease ? { |
| 220 | + 'fastcgi' => $facts['operatingsystemmajrelease'] ? { |
221 | 221 | '5' => 'mod_fastcgi', |
222 | 222 | '6' => 'mod_fastcgi', |
223 | 223 | default => undef, |
224 | 224 | }, |
225 | 225 | 'fcgid' => 'mod_fcgid', |
226 | 226 | 'geoip' => 'mod_geoip', |
227 | 227 | 'intercept_form_submit' => 'mod_intercept_form_submit', |
228 | | - 'ldap' => $apache::version::distrelease ? { |
| 228 | + 'ldap' => $facts['operatingsystemmajrelease'] ? { |
229 | 229 | '5' => undef, |
230 | 230 | '6' => undef, |
231 | 231 | default => 'mod_ldap', |
|
239 | 239 | # https://www.phusionpassenger.com/library/install/apache/install/oss/el7/ |
240 | 240 | 'passenger' => 'mod_passenger', |
241 | 241 | 'perl' => 'mod_perl', |
242 | | - 'php5' => $apache::version::distrelease ? { |
| 242 | + 'php5' => $facts['operatingsystemmajrelease'] ? { |
243 | 243 | '5' => 'php53', |
244 | 244 | default => 'php', |
245 | 245 | }, |
|
252 | 252 | # See http://wiki.aaf.edu.au/tech-info/sp-install-guide |
253 | 253 | 'shibboleth' => 'shibboleth', |
254 | 254 | 'ssl' => 'mod_ssl', |
255 | | - 'wsgi' => $apache::version::distrelease ? { |
| 255 | + 'wsgi' => $facts['operatingsystemmajrelease'] ? { |
256 | 256 | '8' => 'python3-mod_wsgi', # RedHat8 |
257 | 257 | default => 'mod_wsgi', # RedHat5, RedHat6, RedHat7 |
258 | 258 | }, |
|
264 | 264 | } |
265 | 265 | $mod_libs = { |
266 | 266 | 'nss' => 'libmodnss.so', |
267 | | - 'wsgi' => $apache::version::distrelease ? { |
| 267 | + 'wsgi' => $facts['operatingsystemmajrelease'] ? { |
268 | 268 | '8' => 'mod_wsgi_python3.so', |
269 | 269 | default => 'mod_wsgi.so', |
270 | 270 | }, |
|
278 | 278 | $mime_support_package = 'mailcap' |
279 | 279 | $mime_types_config = '/etc/mime.types' |
280 | 280 | $docroot = '/var/www/html' |
281 | | - $alias_icons_path = $apache::version::distrelease ? { |
| 281 | + $alias_icons_path = $facts['operatingsystemmajrelease'] ? { |
282 | 282 | '7' => '/usr/share/httpd/icons', |
283 | 283 | '8' => '/usr/share/httpd/icons', |
284 | 284 | default => '/var/www/icons', |
285 | 285 | } |
286 | | - $error_documents_path = $apache::version::distrelease ? { |
| 286 | + $error_documents_path = $facts['operatingsystemmajrelease'] ? { |
287 | 287 | '7' => '/usr/share/httpd/error', |
288 | 288 | '8' => '/usr/share/httpd/error', |
289 | 289 | default => '/var/www/error' |
|
791 | 791 | $verify_command = '/usr/sbin/apachectl -t' |
792 | 792 | } |
793 | 793 |
|
794 | | - if $::osfamily == 'RedHat' and versioncmp($::operatingsystemrelease, '8.0') >= 0 { |
| 794 | + if $::osfamily == 'RedHat' and versioncmp($facts['operatingsystemmajrelease'], '8') >= 0 { |
795 | 795 | $ssl_protocol = ['all'] # Implementations of the SSLv2 and SSLv3 protocol versions have been removed from OpenSSL (and hence mod_ssl) because these are no longer considered secure. For additional documentation https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/setting-apache-web-server_deploying-different-types-of-servers |
796 | 796 | } else { |
797 | 797 | $ssl_protocol = ['all', '-SSLv2', '-SSLv3'] |
|
0 commit comments