diff --git a/manifests/params.pp b/manifests/params.pp index 4383e12..01d2815 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -4,11 +4,15 @@ # @summary Class contains all class parameters for this module # @param [String] reqpackages which packages to install # @param [String] pkg_ensure which version of packages to install +# @param [String] php_max_execution_time maximum execution time for PHP scripts ############################################################################## class confdroid_php::params ( - String $reqpackages = 'php', - String $pkg_ensure = 'present', + String $reqpackages = 'php', + String $pkg_ensure = 'present', + +# php.ini + String $php_max_execution_time = '30', ) { # Facts diff --git a/templates/php.ini.erb b/templates/php.ini.erb index c6c7f29..ac717ee 100644 --- a/templates/php.ini.erb +++ b/templates/php.ini.erb @@ -411,7 +411,7 @@ expose_php = On ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to 0 for the CLI SAPI -max_execution_time = 30 +max_execution_time = <%= @php_max_execution_time %> ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly