2014-06-06 19:14:44 +02:00
|
|
|
# Meta-state to fully install php.fpm
|
2014-05-20 21:59:25 +02:00
|
|
|
|
|
|
|
include:
|
2019-07-28 07:05:22 +02:00
|
|
|
- php.ng.deprecated
|
2014-05-20 21:59:25 +02:00
|
|
|
- php.ng.fpm.config
|
|
|
|
- php.ng.fpm.service
|
|
|
|
- php.ng.fpm.pools
|
|
|
|
|
2019-04-05 15:08:30 +02:00
|
|
|
{% set pillar_php_ng_version = salt['pillar.get']('php:ng:version', '7.0') %}
|
2014-05-20 21:59:25 +02:00
|
|
|
extend:
|
|
|
|
php_fpm_service:
|
|
|
|
service:
|
|
|
|
- watch:
|
2019-04-05 15:08:30 +02:00
|
|
|
{% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %}
|
|
|
|
{% for version in pillar_php_ng_version %}
|
2019-03-26 18:31:43 +01:00
|
|
|
- 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
|
2019-03-26 18:31:43 +01:00
|
|
|
{% endif %}
|
2014-05-21 06:46:56 +02:00
|
|
|
- require:
|
2014-06-06 19:14:44 +02:00
|
|
|
- sls: php.ng.fpm.config
|
2019-04-05 15:08:30 +02:00
|
|
|
{% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %}
|
|
|
|
{% for version in pillar_php_ng_version %}
|
2019-03-26 18:31:43 +01:00
|
|
|
php_fpm_ini_config_{{ version }}:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
|
|
|
php_fpm_conf_config_{{ version }}:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2014-06-19 21:56:01 +02:00
|
|
|
php_fpm_ini_config:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
|
|
|
php_fpm_conf_config:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
2019-03-26 18:31:43 +01:00
|
|
|
{% endif %}
|