From 9738ae9614a848d11728d13a53c66dae0ffbef18 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Mon, 16 Dec 2019 17:28:39 +0100 Subject: [PATCH] Manages flags on PHP-FPM --- templates/etc/__php__/fpm/pool.d/pool.conf.j2 | 9 ++++++++- tests/test.yml | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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: