|
392 | 392 | 'wsgi' => 'libapache2-mod-wsgi',
|
393 | 393 | 'xsendfile' => 'libapache2-mod-xsendfile',
|
394 | 394 | }
|
395 |
| - } else { |
| 395 | + } elsif ($::operatingsystem == 'Ubuntu') or ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '11') < 0) { |
396 | 396 | $php_version = $facts['operatingsystemmajrelease'] ? {
|
397 | 397 | '9' => '7.0', # Debian Stretch
|
398 | 398 | '16.04' => '7.0', # Ubuntu Xenial
|
|
427 | 427 | 'wsgi' => 'libapache2-mod-wsgi',
|
428 | 428 | 'xsendfile' => 'libapache2-mod-xsendfile',
|
429 | 429 | }
|
| 430 | + } else { |
| 431 | + $php_version = $facts['operatingsystemmajrelease'] ? { |
| 432 | + default => '7.4', # Debian Bullseye |
| 433 | + } |
| 434 | + $mod_packages = { |
| 435 | + 'apreq2' => 'libapache2-mod-apreq2', |
| 436 | + 'auth_cas' => 'libapache2-mod-auth-cas', |
| 437 | + 'auth_kerb' => 'libapache2-mod-auth-kerb', |
| 438 | + 'auth_openidc' => 'libapache2-mod-auth-openidc', |
| 439 | + 'auth_gssapi' => 'libapache2-mod-auth-gssapi', |
| 440 | + 'auth_mellon' => 'libapache2-mod-auth-mellon', |
| 441 | + 'authnz_pam' => 'libapache2-mod-authnz-pam', |
| 442 | + 'dav_svn' => 'libapache2-mod-svn', |
| 443 | + 'fastcgi' => 'libapache2-mod-fastcgi', |
| 444 | + 'fcgid' => 'libapache2-mod-fcgid', |
| 445 | + 'geoip' => 'libapache2-mod-geoip', |
| 446 | + 'intercept_form_submit' => 'libapache2-mod-intercept-form-submit', |
| 447 | + 'jk' => 'libapache2-mod-jk', |
| 448 | + 'lookup_identity' => 'libapache2-mod-lookup-identity', |
| 449 | + 'nss' => 'libapache2-mod-nss', |
| 450 | + 'pagespeed' => 'mod-pagespeed-stable', |
| 451 | + 'passenger' => 'libapache2-mod-passenger', |
| 452 | + 'perl' => 'libapache2-mod-perl2', |
| 453 | + 'phpXXX' => 'libapache2-mod-phpXXX', |
| 454 | + 'python' => 'libapache2-mod-python', |
| 455 | + 'rpaf' => 'libapache2-mod-rpaf', |
| 456 | + 'security' => 'libapache2-mod-security2', |
| 457 | + 'shib2' => 'libapache2-mod-shib', |
| 458 | + 'wsgi' => 'libapache2-mod-wsgi-py3', |
| 459 | + 'xsendfile' => 'libapache2-mod-xsendfile', |
| 460 | + } |
430 | 461 | }
|
431 | 462 | $error_log = 'error.log'
|
432 | 463 | $scriptalias = '/usr/lib/cgi-bin'
|
|
0 commit comments