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.

init.sls 1.1KB

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