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 line
509B

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