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.

21 lines
543B

  1. # Manages the php-hhvm 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.hhvm.service.enabled) %}
  5. include:
  6. - php.ng.deprecated
  7. - php.ng.hhvm.install
  8. php_hhvm_service:
  9. service.{{ service_function }}:
  10. {{ sls_block(php.hhvm.service.opts) }}
  11. - name: {{ php.lookup.hhvm.service }}
  12. - enable: {{ php.hhvm.service.enabled }}
  13. - require:
  14. - sls: php.ng.hhvm.install
  15. - watch:
  16. - pkg: php_install_hhvm