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