Skip to content

Commit

Permalink
Add PHP 8 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
bratucornel committed Aug 19, 2021
1 parent 612e41c commit 8a19e16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions manifests/globals.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class php::globals (

Optional[Pattern[/^(rh-)?(php)?[57](\.)?[0-9]/]] $php_version = undef,
Optional[Pattern[/^(rh-)?(php)?[578](\.)?[0-9]/]] $php_version = undef,
Optional[Stdlib::Absolutepath] $config_root = undef,
Optional[Stdlib::Absolutepath] $fpm_pid_file = undef,
Optional[Enum['rhscl', 'remi']] $rhscl_mode = undef,
Expand All @@ -45,7 +45,7 @@
'Debian': {
if $facts['os']['name'] == 'Ubuntu' {
case $globals_php_version {
/^[57].[0-9]/: {
/^[578].[0-9]/: {
$default_config_root = "/etc/php/${globals_php_version}"
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"
Expand All @@ -69,7 +69,8 @@
} else {
case $globals_php_version {
/^5\.6/,
/^7\.[0-9]/: {
/^7\.[0-9]/,
/^8\.[0-9]/: {
$default_config_root = "/etc/php/${globals_php_version}"
$default_fpm_pid_file = "/var/run/php/php${globals_php_version}-fpm.pid"
$fpm_error_log = "/var/log/php${globals_php_version}-fpm.log"
Expand Down

0 comments on commit 8a19e16

Please sign in to comment.