Tightened up some ng requirements.

This commit is contained in:
Chad Heuschober 2014-05-21 00:46:56 -04:00
parent 5b18a9a4b7
commit 9c5ef0395b
3 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -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) }}

View File

@ -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