class php::params { # Previously, 8.4 was used as the default version. But many official Debian # packages depend on the version currently shipped by Debian. $version8 = $::lsbdistcodename ? { 'bookworm' => '8.2', default => '8.2', } # Any other version that may have been previously installed in the system. $version8_previous = $::lsbdistcodename ? { 'bookworm' => [ '8.4', '8.3', '8.1', '8.0' ], default => [ '8.4', '8.3', '8.1', '8.0' ], } $version7 = $::lsbdistcodename ? { 'bookworm' => '7.4', 'bullseye' => '7.4', 'buster' => '7.4', 'stretch' => '7.4', default => '7.4', } $version7_previous = $::lsbdistcodename ? { 'bookworm' => [ '7.3', '7.2', '7.1', '7.0' ], 'bullseye' => [ '7.3', '7.2', '7.1', '7.0' ], 'buster' => [ '7.3', '7.2', '7.1', '7.0' ], 'stretch' => [ '7.3', '7.2', '7.1', '7.0' ], default => [ '7.3', '7.2', '7.1', '7.0' ], } $version5 = $::lsbdistcodename ? { 'bionic' => '5.6', 'xenial' => '5.6', 'trusty' => '5.6', 'buster' => '5.6', 'stretch' => '5.6', default => '5.6', } }