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-09-04 01:08:56 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
extend:
|
2019-09-04 01:08:56 +02:00
|
|
|
{% if pillar_php_version is iterable and pillar_php_version is not string %}
|
|
|
|
{% for version in pillar_php_version %}
|
|
|
|
|
|
|
|
php_fpm_service_{{ version }}:
|
2019-08-07 17:01:55 +02:00
|
|
|
service:
|
|
|
|
- watch:
|
|
|
|
- file: php_fpm_ini_config_{{ version }}
|
|
|
|
- file: php_fpm_conf_config_{{ version }}
|
|
|
|
- require:
|
|
|
|
- sls: php.fpm.config
|
2019-09-04 01:08:56 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
php_fpm_ini_config_{{ version }}:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
2019-09-04 01:08:56 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
php_fpm_conf_config_{{ version }}:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
2019-09-04 01:08:56 +02:00
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
php_fpm_service:
|
|
|
|
service:
|
|
|
|
- watch:
|
2023-02-26 11:06:47 +01:00
|
|
|
# - file: php_fpm_ini_config
|
2019-09-04 01:08:56 +02:00
|
|
|
- file: php_fpm_conf_config
|
|
|
|
- require:
|
|
|
|
- sls: php.fpm.config
|
|
|
|
|
2023-02-26 11:06:47 +01:00
|
|
|
# php_fpm_ini_config:
|
|
|
|
# file:
|
|
|
|
# - require:
|
|
|
|
# - pkg: php_install_fpm
|
2019-09-04 01:08:56 +02:00
|
|
|
|
2019-08-07 17:01:55 +02:00
|
|
|
php_fpm_conf_config:
|
|
|
|
file:
|
|
|
|
- require:
|
|
|
|
- pkg: php_install_fpm
|
2019-09-04 01:08:56 +02:00
|
|
|
|
|
|
|
{% endif %}
|