Saltstack Official PHP Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2KB

  1. # Meta-state to fully install php.fpm
  2. include:
  3. - php.ng.deprecated
  4. - php.ng.fpm.config
  5. - php.ng.fpm.service
  6. - php.ng.fpm.pools
  7. {% set pillar_php_ng_version = salt['pillar.get']('php:ng:version', '7.0') %}
  8. extend:
  9. php_fpm_service:
  10. service:
  11. - watch:
  12. {% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %}
  13. {% for version in pillar_php_ng_version %}
  14. - file: php_fpm_ini_config_{{ version }}
  15. - file: php_fpm_conf_config_{{ version }}
  16. {% endfor %}
  17. {% else %}
  18. - file: php_fpm_ini_config
  19. - file: php_fpm_conf_config
  20. {% endif %}
  21. - require:
  22. - sls: php.ng.fpm.config
  23. {% if pillar_php_ng_version is iterable and pillar_php_ng_version is not string %}
  24. {% for version in pillar_php_ng_version %}
  25. php_fpm_ini_config_{{ version }}:
  26. file:
  27. - require:
  28. - pkg: php_install_fpm
  29. php_fpm_conf_config_{{ version }}:
  30. file:
  31. - require:
  32. - pkg: php_install_fpm
  33. {% endfor %}
  34. {% else %}
  35. php_fpm_ini_config:
  36. file:
  37. - require:
  38. - pkg: php_install_fpm
  39. php_fpm_conf_config:
  40. file:
  41. - require:
  42. - pkg: php_install_fpm
  43. {% endif %}