php-formula/php/ng/fpm/init.sls

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-06-06 19:14:44 +02:00
# Meta-state to fully install php.fpm
2014-05-20 21:59:25 +02:00
include:
- php.ng.fpm.config
- php.ng.fpm.service
- php.ng.fpm.pools
extend:
php_fpm_service:
service:
- watch:
{% if salt['pillar.get']('php:ng:version') is iterable %}
{% for version in salt['pillar.get']('php:ng:version') %}
- file: php_fpm_ini_config_{{ version }}
- file: php_fpm_conf_config_{{ version }}
{% endfor %}
{% else %}
2014-05-20 21:59:25 +02:00
- file: php_fpm_ini_config
- file: php_fpm_conf_config
{% endif %}
2014-05-21 06:46:56 +02:00
- require:
2014-06-06 19:14:44 +02:00
- sls: php.ng.fpm.config
{% if salt['pillar.get']('php:ng:version') is iterable %}
{% for version in salt['pillar.get']('php:ng:version') %}
php_fpm_ini_config_{{ version }}:
file:
- require:
- pkg: php_install_fpm
php_fpm_conf_config_{{ version }}:
file:
- require:
- pkg: php_install_fpm
{% endfor %}
{% else %}
php_fpm_ini_config:
file:
- require:
- pkg: php_install_fpm
php_fpm_conf_config:
file:
- require:
- pkg: php_install_fpm
{% endif %}