Tightened up some ng requirements.
This commit is contained in:
parent
5b18a9a4b7
commit
9c5ef0395b
@ -13,3 +13,6 @@ extend:
|
||||
- watch:
|
||||
- file: php_fpm_ini_config
|
||||
- file: php_fpm_conf_config
|
||||
- require:
|
||||
- file: php_fpm_ini_config
|
||||
- file: php_fpm_conf_config
|
||||
|
@ -3,14 +3,21 @@
|
||||
{% from 'php/ng/fpm/pools_config.sls' import pool_states with context %}
|
||||
{% from 'php/ng/fpm/service.sls' import service_function with context %}
|
||||
|
||||
{% macro file_requisites(states) %}
|
||||
{%- for state in states %}
|
||||
- file: {{ state }}
|
||||
{%- endfor -%}
|
||||
{% endmacro %}
|
||||
|
||||
include:
|
||||
- php.ng.fpm.service
|
||||
- php.ng.fpm.pools_config
|
||||
|
||||
|
||||
extend:
|
||||
php_fpm_service:
|
||||
service.{{ service_function }}:
|
||||
service:
|
||||
- watch:
|
||||
{%- for pool in pool_states %}
|
||||
- file: {{ pool }}
|
||||
{% endfor -%}
|
||||
{{ file_requisites(pool_states) }}
|
||||
- require:
|
||||
{{ file_requisites(pool_states) }}
|
||||
|
@ -14,4 +14,3 @@ php_fpm_service:
|
||||
- sls: php.ng.fpm.install
|
||||
- watch:
|
||||
- pkg: php_install_fpm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user