Permalink
Browse files

Merge pull request #453 from Chassis/452-php-72-support

Add Php 7.2 support
  • Loading branch information...
rmccue committed Nov 15, 2017
2 parents da78314 + 91cfedc commit 9bfecaf9b4e9f97910dac92db97248e735443f08
Showing with 14 additions and 8 deletions.
  1. +1 −1 config.yaml
  2. +13 −7 puppet/modules/chassis/manifests/php.pp
View
@@ -99,7 +99,7 @@ synced_folders:
# - git@github.com:Chassis/memcache.git
# PHP version
# Values: 5.6, 7.0, 7.1 (or 5.6.30)
# Values: 5.6, 7.0, 7.1, 7.2 (or 5.6.30)
php: 7.0
# VirtualBox-specific customisations.
@@ -125,7 +125,8 @@
'5.5',
'5.6',
'7.0',
'7.1': {
'7.1',
'7.2': {
package { [ "php${name}-fpm", "php${name}-cli", "php${name}-common" ]:
ensure => absent,
}
@@ -142,32 +143,37 @@
case $short_ver {
'5.3': {
remove_php_fpm { [ '5.5', '5.6', '7.0', '7.1' ]:
remove_php_fpm { [ '5.5', '5.6', '7.0', '7.1', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'5.4': {
remove_php_fpm { [ '5.5', '5.6', '7.0', '7.1' ]:
remove_php_fpm { [ '5.5', '5.6', '7.0', '7.1', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'5.5': {
remove_php_fpm { [ 'old', '5.6', '7.0', '7.1' ]:
remove_php_fpm { [ 'old', '5.6', '7.0', '7.1', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'5.6': {
remove_php_fpm { [ 'old', '5.5', '7.0', '7.1' ]:
remove_php_fpm { [ 'old', '5.5', '7.0', '7.1', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'7.0': {
remove_php_fpm { [ 'old', '5.5', '5.6', '7.1' ]:
remove_php_fpm { [ 'old', '5.5', '5.6', '7.1', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'7.1': {
remove_php_fpm { [ 'old', '5.5', '5.6', '7.0' ]:
remove_php_fpm { [ 'old', '5.5', '5.6', '7.0', '7.2' ]:
notify => Service["${php_package}-fpm"],
}
}
'7.2': {
remove_php_fpm { [ 'old', '5.5', '5.6', '7.0', '7.1' ]:
notify => Service["${php_package}-fpm"],
}
}

0 comments on commit 9bfecaf

Please sign in to comment.