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.

20 lines
547B

  1. # Manages the php-fpm service.
  2. {% from "php/ng/map.jinja" import php with context %}
  3. {% from "php/ng/macro.jinja" import sls_block %}
  4. {% set service_function = {True:'running', False:'dead'}.get(php.fpm.service.enabled) %}
  5. include:
  6. - php.ng.deprecated
  7. - php.ng.fpm.install
  8. php_fpm_service:
  9. service.{{ service_function }}:
  10. {{ sls_block(php.fpm.service.opts) }}
  11. - name: {{ php.lookup.fpm.service }}
  12. - enable: {{ php.fpm.service.enabled }}
  13. - require:
  14. - sls: php.ng.fpm.install
  15. - watch:
  16. - pkg: php_install_fpm