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.

19 lines
525B

  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.fpm.install
  7. php_fpm_service:
  8. service.{{ service_function }}:
  9. {{ sls_block(php.fpm.service.opts) }}
  10. - name: {{ php.lookup.fpm.service }}
  11. - enable: {{ php.fpm.service.enabled }}
  12. - require:
  13. - sls: php.ng.fpm.install
  14. - watch:
  15. - pkg: php_install_fpm