Saltstack Official PHP Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

55 rindas
1.0KB

  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 %}