|
361 | 361 | 'wsgi' => 'libapache2-mod-wsgi', |
362 | 362 | 'xsendfile' => 'libapache2-mod-xsendfile', |
363 | 363 | } |
364 | | - } elsif ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) { |
365 | | - # Debian stretch uses a different dav_svn from Ubuntu Xenial |
366 | | - $php_version = '7.0' |
| 364 | + } elsif ($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '9') >= 0) or ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) { |
| 365 | + $php_version = $facts['operatingsystemmajrelease'] ? { |
| 366 | + '9' => '7.0', # Debian Stretch |
| 367 | + '10' => '7.3', # Debian Buster |
| 368 | + default => '7.2', # Ubuntu Bionic, Cosmic and Disco |
| 369 | + } |
367 | 370 | $mod_packages = { |
368 | 371 | 'auth_cas' => 'libapache2-mod-auth-cas', |
369 | 372 | 'auth_kerb' => 'libapache2-mod-auth-kerb', |
|
372 | 375 | 'authnz_pam' => 'libapache2-mod-authnz-pam', |
373 | 376 | 'dav_svn' => 'libapache2-mod-svn', |
374 | 377 | 'fastcgi' => 'libapache2-mod-fastcgi', |
375 | | - 'fcgid' => 'libapache2-mod-fcgid', |
376 | | - 'geoip' => 'libapache2-mod-geoip', |
377 | | - 'intercept_form_submit' => 'libapache2-mod-intercept-form-submit', |
378 | | - 'lookup_identity' => 'libapache2-mod-lookup-identity', |
379 | | - 'nss' => 'libapache2-mod-nss', |
380 | | - 'pagespeed' => 'mod-pagespeed-stable', |
381 | | - 'passenger' => 'libapache2-mod-passenger', |
382 | | - 'perl' => 'libapache2-mod-perl2', |
383 | | - 'phpXXX' => 'libapache2-mod-phpXXX', |
384 | | - 'python' => 'libapache2-mod-python', |
385 | | - 'rpaf' => 'libapache2-mod-rpaf', |
386 | | - 'security' => 'libapache2-mod-security2', |
387 | | - 'shib2' => 'libapache2-mod-shib2', |
388 | | - 'suphp' => 'libapache2-mod-suphp', |
389 | | - 'wsgi' => 'libapache2-mod-wsgi', |
390 | | - 'xsendfile' => 'libapache2-mod-xsendfile', |
391 | | - } |
392 | | - } elsif ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '18.04') >= 0) { |
393 | | - # major.minor version used since Debian stretch and Ubuntu Xenial |
394 | | - $php_version = '7.2' # different to Ubuntu 16.04 |
395 | | - # fastcgi and suphp got removed from #mod_packages, they aren't supported anymore |
396 | | - $mod_packages = { |
397 | | - 'auth_cas' => 'libapache2-mod-auth-cas', |
398 | | - 'auth_kerb' => 'libapache2-mod-auth-kerb', |
399 | | - 'auth_gssapi' => 'libapache2-mod-auth-gssapi', |
400 | | - 'auth_mellon' => 'libapache2-mod-auth-mellon', |
401 | | - 'authnz_pam' => 'libapache2-mod-authnz-pam', |
402 | | - 'dav_svn' => 'libapache2-mod-svn', # different to Ubuntu16.04 |
403 | | - 'fcgid' => 'libapache2-mod-fcgid', |
404 | 378 | 'geoip' => 'libapache2-mod-geoip', |
405 | 379 | 'intercept_form_submit' => 'libapache2-mod-intercept-form-submit', |
406 | 380 | 'lookup_identity' => 'libapache2-mod-lookup-identity', |
|
417 | 391 | 'xsendfile' => 'libapache2-mod-xsendfile', |
418 | 392 | } |
419 | 393 | } else { |
420 | | - # major.minor version used since Debian stretch and Ubuntu Xenial |
| 394 | + # Ubuntu Xenial |
421 | 395 | $php_version = '7.0' |
422 | 396 | $mod_packages = { |
423 | 397 | 'auth_cas' => 'libapache2-mod-auth-cas', |
|
0 commit comments