diff --git a/templates/etc/__php__/fpm/pool.d/pool.conf.j2 b/templates/etc/__php__/fpm/pool.d/pool.conf.j2 index 24fa286..da77557 100644 --- a/templates/etc/__php__/fpm/pool.d/pool.conf.j2 +++ b/templates/etc/__php__/fpm/pool.d/pool.conf.j2 @@ -421,5 +421,12 @@ chdir = / ;php_admin_value[error_log] = /var/log/fpm-php.www.log ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M - +{% if item.php_flag is defined %} +{% for k, v in item.php_flag.items() %} +{% endfor %} +{% endif %} +{% if item.php_admin_flag is defined %} +{% for k, v in item.php_admin_flag.items() %} +{% endfor %} +{% endif %} ; vim:filetype=dosini diff --git a/tests/test.yml b/tests/test.yml index c1ce974..35cfc94 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -21,6 +21,10 @@ status_path: '/status' ping_path: '/ping' ping_response: 'ok' + php_flag: + display_errors: 'Off' + php_admin_flag: + memory_limit: '128M' pre_tasks: