Saltstack Official PHP Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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