Skip to content
Permalink
Browse files

Upgrade to php7.3

  • Loading branch information...
FlorianSW committed Aug 29, 2019
1 parent 68aff9e commit 63410541809ca5247af09283f495fcacad1cc47b
Showing with 19 additions and 6 deletions.
  1. +12 −0 modules/monit/templates/php7.3-fpm.erb
  2. +7 −6 modules/role/manifests/php.pp
@@ -0,0 +1,12 @@
#
# THIS FILE IS MANAGED BY PUPPET
#

check process php7.3-fpm with pidfile /var/run/php/php7.3-fpm.pid
start program = "/etc/init.d/php7.3-fpm start" with timeout 60 seconds
stop program = "/etc/init.d/php7.3-fpm stop"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if loadavg(5min) greater than 10 for 8 cycles then restart
if 3 restarts within 5 cycles then timeout
group server
@@ -1,10 +1,11 @@
# Installs and configures a PHP runtime on the
# server.
class role::php(
$php_version = '7.2',
$php_version = '7.3',
) {
# wikidiff2 apt repository
apt::source { 'ppa-floriansw-droidwiki':
ensure => 'absent',
location => 'http://ppa.launchpad.net/floriansw/droidwiki/ubuntu',
release => 'bionic',
repos => 'main',
@@ -28,6 +29,11 @@
settings => {
'PHP/upload_max_filesize' => '100M',
'PHP/post_max_size' => '100M',
'opcache/opcache.enable' => '1',
'opcache/opcache.memory_consumption' => '128M',
'opcache/opcache.max_accelerated_files' => '50000',
'opcache/opcache.revalidate_freq' => '60',
'opcache.fast_shutdown' => '1',
},

extensions => {
@@ -77,12 +83,7 @@
ldap => {
provider => 'apt',
},
wikidiff2 => {
provider => 'apt',
package_prefix => 'php-',
}
},
require => Apt::Source['ppa-floriansw-droidwiki'],
}

if $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['full'], '16.04') < 0 {

0 comments on commit 6341054

Please sign in to comment.
You can’t perform that action at this time.