Skip to content

Commit dcb581b

Browse files
authored
Allow overriding 'pm' in PHP-FPM's pool config (#1542)
1 parent ca9b648 commit dcb581b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

roles/wordpress-setup/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ robots_tag_header: "{{ item.value.robots_tag_header | default({}) }}"
4949
robots_tag_header_enabled: "{{ robots_tag_header.enabled | default(not_prod) }}"
5050

5151
# PHP FPM
52+
php_fpm_pm: 'dynamic'
5253
php_fpm_pm_max_children: 10
5354
php_fpm_pm_start_servers: 1
5455
php_fpm_pm_min_spare_servers: 1

roles/wordpress-setup/templates/php-fpm-pool-wordpress.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ listen.owner = www-data
66
listen.group = www-data
77
user = {{ web_user }}
88
group = {{ web_group }}
9-
pm = dynamic
9+
pm = {{ php_fpm_pm }}
1010
pm.max_children = {{ php_fpm_pm_max_children }}
1111
pm.start_servers = {{ php_fpm_pm_start_servers }}
1212
pm.min_spare_servers = {{ php_fpm_pm_min_spare_servers }}

0 commit comments

Comments
 (0)