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.

17 lines
486B

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