2019-08-07 17:01:55 +02:00
|
|
|
# Manages the php-fpm pools config files
|
|
|
|
{% from "php/map.jinja" import php with context %}
|
|
|
|
{% from "php/macro.jinja" import sls_block %}
|
2019-09-04 00:35:10 +02:00
|
|
|
{% from "php/macro.jinja" import file_requisites %}
|
2019-08-07 17:01:55 +02:00
|
|
|
{% from "php/fpm/pools_config.sls" import pool_states with context %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- php.fpm.service
|
|
|
|
- php.fpm.pools_config
|
|
|
|
|
|
|
|
{% if pool_states %}
|
|
|
|
extend:
|
|
|
|
php_fpm_service:
|
|
|
|
service:
|
|
|
|
- watch:
|
|
|
|
{{ file_requisites(pool_states) }}
|
|
|
|
- require:
|
|
|
|
{{ file_requisites(pool_states) }}
|
|
|
|
{% endif %}
|