mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Merge pull request #395 from blizzz/support_status_path
add option to set pm.status_path
This commit is contained in:
commit
8b216f5586
@ -83,6 +83,7 @@ The handler restarts PHP-FPM by default. Setting the value to `reloaded` will re
|
|||||||
pool_pm_min_spare_servers: 1
|
pool_pm_min_spare_servers: 1
|
||||||
pool_pm_max_spare_servers: 3
|
pool_pm_max_spare_servers: 3
|
||||||
pool_pm_max_requests: 500
|
pool_pm_max_requests: 500
|
||||||
|
pool_pm_status_path: /status
|
||||||
|
|
||||||
List of PHP-FPM pool to create. By default, www pool is created. To setup a new pool, add an item to php_fpm_pools list.
|
List of PHP-FPM pool to create. By default, www pool is created. To setup a new pool, add an item to php_fpm_pools list.
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ php_fpm_pm_start_servers: 5
|
|||||||
php_fpm_pm_min_spare_servers: 5
|
php_fpm_pm_min_spare_servers: 5
|
||||||
php_fpm_pm_max_spare_servers: 5
|
php_fpm_pm_max_spare_servers: 5
|
||||||
php_fpm_pm_max_requests: 0
|
php_fpm_pm_max_requests: 0
|
||||||
|
php_fpm_pm_status_path: ""
|
||||||
|
|
||||||
# PHP-FPM pool configuration.
|
# PHP-FPM pool configuration.
|
||||||
php_fpm_pools:
|
php_fpm_pools:
|
||||||
@ -44,6 +45,7 @@ php_fpm_pools:
|
|||||||
pool_pm_min_spare_servers: "{{ php_fpm_pm_min_spare_servers }}"
|
pool_pm_min_spare_servers: "{{ php_fpm_pm_min_spare_servers }}"
|
||||||
pool_pm_max_spare_servers: "{{ php_fpm_pm_max_spare_servers }}"
|
pool_pm_max_spare_servers: "{{ php_fpm_pm_max_spare_servers }}"
|
||||||
pool_pm_max_requests: "{{ php_fpm_pm_max_requests }}"
|
pool_pm_max_requests: "{{ php_fpm_pm_max_requests }}"
|
||||||
|
pool_pm_status_path: "{{ php_fpm_pm_status_path }}"
|
||||||
|
|
||||||
# The executable to run when calling PHP from the command line.
|
# The executable to run when calling PHP from the command line.
|
||||||
php_executable: "php"
|
php_executable: "php"
|
||||||
|
@ -15,3 +15,6 @@ pm.start_servers = {{ item.pool_pm_start_servers | default(5, true) }}
|
|||||||
pm.min_spare_servers = {{ item.pool_pm_min_spare_servers | default(5, true) }}
|
pm.min_spare_servers = {{ item.pool_pm_min_spare_servers | default(5, true) }}
|
||||||
pm.max_spare_servers = {{ item.pool_pm_max_spare_servers | default(5, true) }}
|
pm.max_spare_servers = {{ item.pool_pm_max_spare_servers | default(5, true) }}
|
||||||
pm.max_requests = {{ item.pool_pm_max_requests | default(500, true) }}
|
pm.max_requests = {{ item.pool_pm_max_requests | default(500, true) }}
|
||||||
|
{% if item.pool_pm_status_path|length %}
|
||||||
|
pm.status_path = {{ item.pool_pm_status_path }}
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user