php-formula/php/fpm/init.sls
Georg Pfuetzenreuter 82fb667a88
Disable php_fpm_ini_config
We prefer packaged defaults over formula ones.
Undo this commit after a solution for
https://github.com/saltstack-formulas/php-formula/pull/238#issuecomment-1445219305.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-26 11:06:47 +01:00

55 lines
1.1 KiB
Plaintext

# Meta-state to fully install php.fpm
include:
- php.fpm.config
- php.fpm.service
- php.fpm.pools
{% set pillar_php_version = salt['pillar.get']('php:version', '7.0') %}
extend:
{% if pillar_php_version is iterable and pillar_php_version is not string %}
{% for version in pillar_php_version %}
php_fpm_service_{{ version }}:
service:
- watch:
- file: php_fpm_ini_config_{{ version }}
- file: php_fpm_conf_config_{{ version }}
- require:
- sls: php.fpm.config
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_service:
service:
- watch:
# - file: php_fpm_ini_config
- file: php_fpm_conf_config
- require:
- sls: php.fpm.config
# php_fpm_ini_config:
# file:
# - require:
# - pkg: php_install_fpm
php_fpm_conf_config:
file:
- require:
- pkg: php_install_fpm
{% endif %}