2019-08-07 17:01:55 +02:00
|
|
|
# Meta-state to fully install php.fpm
|
|
|
|
|
|
|
|
include:
|
|
|
|
- php.fpm.config
|
|
|
|
- php.fpm.service
|
|
|
|
- php.fpm.pools
|
|
|
|
|
2019-08-27 00:05:26 +02:00
|
|
|
{% set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
|
2019-08-07 17:01:55 +02:00
|
|
|
extend:
|
|
|
|
php_fpm_service:
|
|
|
|
service:
|
|
|
|
- watch:
|
2019-08-27 00:05:26 +02:00
|
|
|
{% if pillar_php_version is iterable and pillar_php_version is not string %}
|
|
|
|
{% for version in pillar_php_version %}
|
2019-08-07 17:01:55 +02:00
|
|
|
- file: php_fpm_ini_config_{{ version }}
|
|
|
|
- file: php_fpm_conf_config_{{ version }}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
- file: php_fpm_ini_config
|
|
|
|
- file: php_fpm_conf_config
|
|
|
|
{% endif %}
|
|
|
|
- require:
|
|
|
|
- sls: php.fpm.config
|
2019-08-27 00:05:26 +02:00
|
|
|
{% if pillar_php_version is iterable and pillar_php_version is not string %}
|
|
|
|
{% for version in pillar_php_version %}
|
2019-08-07 17:01:55 +02: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 %}
|
|
|
|
php_fpm_ini_config:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
|
|
|
php_fpm_conf_config:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
|
|
|
{% endif %}
|